prefect.server.services.pause_expirations
The FailExpiredPauses service. Responsible for putting Paused flow runs in a Failed state if they are not resumed on time.
Classes
FailExpiredPauses
Fails flow runs that have been paused and never resumed
Methods:
run_once
- Querying for flow runs in a Paused state that have timed out
- For any runs past the “expiration” threshold, setting the flow run state to a
new
Failed
state
run_once
LoopService().start(loops=1)
instead of LoopService().run_once()
, because this method will not invoke setup
and teardown methods properly.
service_settings
start
stop
block
: if True, blocks until the service is finished running. Otherwise it requests a stop and returns but the service may still be running a final loop.