<@ULVA73B9P> If I am self hosting my own Prefect s...
# ask-marvin
d
@Marvin If I am self hosting my own Prefect server, where can I update the Settings to change the
PREFECT_API_SERVICES_SCHEDULER_MIN_RUNS
setting?
m
To update the
PREFECT_API_SERVICES_SCHEDULER_MIN_RUNS
setting on your self-hosted Prefect server, you should refer to the Prefect Settings documentation, which will guide you on how to alter your settings. The actual process might require updating environment variables or configuration files associated with the Prefect API. You can find more information on altering your settings in the Prefect documentation here. For detailed steps on hosting your own Prefect server, you can refer to the Prefect documentation on hosting a server.
d
Should this environment variable be updated on the Server itself, or Agent?
@Marvin Should this environment variable be updated on the Server itself, or Agent?
m
The
PREFECT_API_SERVICES_SCHEDULER_MIN_RUNS
environment variable should be updated on the server where the Scheduler service is running. The Scheduler service is automatically started with the
prefect server start
command and is responsible for evaluating deployment schedules and creating new runs. Therefore, this environment variable is relevant to the server's operation, not the agent. The agent, on the other hand, is responsible for polling work and executing flow runs - not for scheduling. So if you are modifying the Scheduler's behavior, you'll want to update the server's configuration. For further reference on Prefect Schedules, you can check their documentation here, and for more information on agents, check here.