prefect.flow_runs
wait_for_flow_run
flow_run_id
: The flow run ID for the flow run to wait for.timeout
: The wait timeout in seconds. Defaults to 10800 (3 hours).poll_interval
: Deprecated; polling is no longer used to wait for flow runs.client
: Optional Prefect client. If not provided, one will be injected.log_states
: If True, log state changes. Defaults to False.prefect.exceptions.FlowWaitTimeout
: If flow run goes over the timeout.pause_flow_run
timeout
: the number of seconds to wait for the flow to be resumed before
failing. Defaults to 1 hour (3600 seconds). If the pause timeout exceeds
any configured flow-level timeout, the flow might fail even after resuming.poll_interval
: The number of seconds between checking whether the flow has been
resumed. Defaults to 10 seconds.key
: An optional key to prevent calling pauses more than once. This defaults to
the number of pauses observed by the flow so far, and prevents pauses that
use the “reschedule” option from running the same pause twice. A custom key
can be supplied for custom pausing behavior.wait_for_input
: a subclass of RunInput
or any type supported by
Pydantic. If provided when the flow pauses, the flow will wait for the
input to be provided before resuming. If the flow is resumed without
providing the input, the flow will fail. If the flow is resumed with the
input, the flow will resume and the input will be loaded and returned
from this function.suspend_flow_run
persist_result
option.
Args:
flow_run_id
: a flow run id. If supplied, this function will attempt to
suspend the specified flow run. If not supplied will attempt to
suspend the current flow run.timeout
: the number of seconds to wait for the flow to be resumed before
failing. Defaults to 1 hour (3600 seconds). If the pause timeout
exceeds any configured flow-level timeout, the flow might fail even
after resuming.key
: An optional key to prevent calling suspend more than once. This
defaults to a random string and prevents suspends from running the
same suspend twice. A custom key can be supplied for custom
suspending behavior.wait_for_input
: a subclass of RunInput
or any type supported by
Pydantic. If provided when the flow suspends, the flow will remain
suspended until receiving the input before resuming. If the flow is
resumed without providing the input, the flow will fail. If the flow is
resumed with the input, the flow will resume and the input will be
loaded and returned from this function.resume_flow_run
flow_run_id
: the flow_run_id to resumerun_input
: a dictionary of inputs to provide to the flow run.