Adam Eury
10/19/2023, 6:39 PMprefect deploy --all
command while it was building the docker image and now it consistently fails to run successfully with this error.Adam Eury
10/19/2023, 6:39 PMAdam Eury
10/19/2023, 6:39 PMAdam Eury
10/19/2023, 6:40 PMAdam Eury
10/19/2023, 6:53 PMNate
10/19/2023, 7:23 PMAdam Eury
10/19/2023, 7:28 PMNate
10/19/2023, 7:29 PMAdam Eury
10/19/2023, 7:30 PMon_cancellation
behavior and it doesn't always seem to run. In one flow run, I saw this in the logs
Running hook 'handle_cancellation' in response to entering state 'Cancelling'
and then without changing anything at all, I cancelled another run and didn't observe the same behavior.Adam Eury
10/19/2023, 7:33 PMNate
10/19/2023, 7:36 PMNate
10/19/2023, 7:36 PMNate
10/19/2023, 7:37 PMMarvin
10/19/2023, 7:37 PMon_cancelled
or on_crashed
hooks do not execute when using a Kubernetes worker. The issue was tested in three scenarios: local without a deployment, local with a deployment, and remote with a Kubernetes worker. The hooks worked as expected in the first two scenarios but failed in the third.
2. Prefect `on_cancellation` hook is not called when cancelling a flow during a task submitted to a task runner: This issue reports that the cancellation hook is never called upon flow run cancellation. The user noticed this while trying to add an on_cancellation
hook to a Prefect flow.
3. No Prefect logger available by default in a vanilla Python function, even a callable on_cancellation hook: This issue reports that the on_cancellation
hook threw an error and was unable to be called successfully when a flow was canceled mid-task run.
I hope this information is helpful. If you need more details, I suggest visiting the links provided.Adam Eury
10/19/2023, 7:37 PMNate
10/19/2023, 7:38 PMAdam Eury
10/19/2023, 7:38 PM