Fernando Correia
03/21/2025, 11:09 PMMarvin
03/21/2025, 11:09 PMNate
03/21/2025, 11:13 PMFernando Correia
03/21/2025, 11:33 PMPREFECT_RUNNER_POLL_FREQUENCY
and PREFECT_WORKER_QUERY_SECONDS
.
PREFECT_RUNNER_POLL_FREQUENCY
's description is
Number of seconds a runner should wait between queries for scheduled work.
That's why I got curious about what a runner is. I am just trying to understand the different components.Nate
03/21/2025, 11:47 PM.serve
is an easy-mode deployment where the Runner
listens for scheduled work (i.e. no separate long-lived worker process required), so while the worker is typically the long-lived process that only listens for scheduled work (and therefore has a setting to decide how often to ask for work), the Runner can take on this responsibility in the case of .serve
we have some work in flight to clarify the separation of concerns here internally, but tldr, you generally don't have to change these settings, but if you do:
• PREFECT_WORKER_QUERY_SECONDS
controls how often your long-lived worker process checks for work
• PREFECT_RUNNER_POLL_FREQUENCY
controls how often your Runner
asks for work in the case of .serve
where there is no separate listening processFernando Correia
03/21/2025, 11:48 PM