prefect.workers.process
¶
Module containing the Process worker used for executing flow runs as subprocesses.
To start a Process worker, run the following command:
prefect worker start --pool 'my-work-pool' --type process
Replace 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.
ProcessJobConfiguration
¶
Bases: BaseJobConfiguration
Source code in prefect/workers/process.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
validate_command
¶
Make sure that the working directory is formatted for the current platform.
Source code in prefect/workers/process.py
86 87 88 89 90 91 |
|
ProcessWorkerResult
¶
Bases: BaseWorkerResult
Contains information about the final state of a completed process
Source code in prefect/workers/process.py
135 136 |
|