prefect.workers.process
Module containing the Process worker used for executing flow runs as subprocesses.
To start a Process worker, run the following command:
my-work-pool with the name of the work pool you want the worker
to poll for flow runs.
For more information about work pools and workers,
checkout out the Prefect docs.
Classes
ProcessJobConfiguration
Methods:
from_template_and_values
is_using_a_runner
json_template
prepare_for_flow_run
prepare_for_flow_run
flow_run: The flow run to be executed.deployment: The deployment that the flow run is associated with.flow: The flow that the flow run is associated with.work_pool: The work pool that the flow run is running in.worker_name: The name of the worker that is submitting the flow run.worker_id: The backend ID of the worker that is submitting the flow run.
resolve_for_flow_run
prepare_for_flow_run.