Skip to main content

prefect worker

Start and interact with workers.

prefect worker start

Start a worker process to poll a work pool for flow runs.

Options

The name to give to the started worker.
The work pool the started worker should poll.
Work queue names to pull from (repeatable).
The type of worker to start.
Seconds to look ahead for scheduled flow runs. [from PREFECT_WORKER_PREFETCH_SECONDS]
Only run worker polling once.
Maximum concurrent flow runs.
Start a healthcheck server.
Install policy for worker packages.
Path to JSON file containing base job template.
Create the work pool if it does not exist. Set to false when the work pool is managed externally (e.g. via Terraform or another provisioning tool).