support graceful shutdown? We're running flows as Kubernetes jobs on EC2 spot instances, which get terminated from time to time. Let's say the job starts a pod
on a node that terminates. Kubernetes will quickly reschedule it and spawn a pod
does nothing because the state of the tasks is
, but they are not (
is dead). We need to wait for the heartbeat to timeout for Prefect to reschedule it which takes a long time. Instead setting something like
to tasks that are
when a SIGTERM is received would be nice.