-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow run that receives SIGTERM does not go through CRASH detection #7800
Comments
Should help with #7732 |
Hi @madkinsz 👋 I'll leave some thoughts here. maybe it helps, maybe I can help? either way, here we go: the use case of a k8s user wanting to (auto)scale up their data pipelines using prefect:
e.g. FastAPI works like this: it will allow ongoing requests to finish and will gracefully close the loop when a SIGTERM is received. k8s counts on this behaviour in the scale-down mechanic of the Deployment/StatefulSet/ReplicaSet. there is also still the issue of k8s SIGKILLing subprocesses to avoid the container from going OOM, which I think is relevant for this particular issue (and the CRASH detection) as well:
|
Hi @chrisguidry @anticorrelator @madkinsz 👋 Taking the liberty to ping you three ref #8126 :) Could you have a quick look at my comment above and let me know if this is something that's covered, or whether it warrants a separate issue? Many thanks! |
Is it handled by #8127? Like, could we start running |
We only added handling for graceful exit of flow runs, not of agents. It sounds a bit like a separate issue is merited. |
First check
Prefect Version
2.x
Describe the current behavior
Given a flow
A kill signal
Results in immediate exit of the run
Describe the proposed behavior
This flow should go through our crash handling.
To ensure cancelled flows are not reported as crashed, we should add a rule for transition to CRASHED that checks the parent state for CANCELLED and sets CANCELLED instead
Example Use
—
Additional context
No response
The text was updated successfully, but these errors were encountered: