Oliver Tedder
01/03/2025, 3:15 PMMarvin
01/03/2025, 3:15 PMPREFECT_API_URL
and PREFECT_API_KEY
settings. These are necessary for the workers to connect to the Prefect server.
2. Worker Persistence: Workers are lightweight polling services, and they should be set up to start automatically with the server. If this isn't happening, you might need to configure your environment to ensure workers restart alongside the server.
3. Health Checks: Consider enabling the --with-healthcheck
option when starting your workers. This could help in diagnosing if the workers are failing to reconnect due to any health issues.
4. Manual Restart: As a workaround, restarting the workers manually, as you've been doing, is a temporary solution until a more robust setup is configured.
For more detailed information, you can refer to the Prefect documentation on workers.
If this continues to be a problem, consider reaching out to the Prefect community or filing a bug report, as there are no open issues related to this behavior in the Prefect GitHub repository.