Hi everyone, I interrupted the `prefect deploy --a...
# ask-community
a
Hi everyone, I interrupted the
prefect deploy --all
command while it was building the docker image and now it consistently fails to run successfully with this error.
Untitled
Has anyone else experienced this issue?
I imagine I need to clean up the prefect environment somehow? where ever it stores the generated Dockerfile?
Well I feel dumb. Just noticed the Dockerfile is created in the root directory. 🙂
n
aha! so are you all good now? @Adam Eury
a
yes, thanks @Nate lol
n
good to hear, sure thing!
a
I am running into some other strange issues though. I'm testing the
on_cancellation
behavior and it doesn't always seem to run. In one flow run, I saw this in the logs
Copy code
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.
Do you have any tips/help for issues like this @Nate?
n
@Marvin issues about cancellation hooks?
hmm i think there might be an issue about this
without more specific info on your situation (your runtime infra etc) itd be hard for me to try and diagnose
m
Here are some issues related to cancellation hooks in Prefect: 1. Flow hooks `on_crashed` / `on_cancellation` not executing correctly with KubernetesWorker: This issue reports that the
on_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.
a
I'm testing running flows on Kubernetes.
n
i think the first issue above might be relevant
a
thanks! taking a look