Closed Ulthran closed 2 weeks ago
Thanks for the bug report @Ulthran! I'd recommend using only the environment
setting and make sure you include the port (4200 by default):
environment=PREFECT_API_URL="http://127.0.0.1:4200/api"
If that doesn't work, can you get the config out of your supervisord process with prefect config view
and share it?
Thanks @desertaxle that worked! I do think I might've been messing up the supervisord updates also so it's possible some of the earlier combinations I mentioned would work too. First time with prefect and with supervisord.
Thanks for the quick reply and great software though!
Bug summary
I'm trying to have prefect server and a local worker pool startup automatically with a RHEL server. I'm using supervisord to start both:
This snippet from
/etc/supervisord.conf
shows the program definitions for both. The prefect server starts up as expected but then the worker pool keeps raising the below ValueError:I've tried restarting it manually through supervisorctl (
sudo supervisorctl restart prefect_local_worker_pool
) and the same error occurs on each restart attempt. When I runprefect worker start --pool "LOCAL"
in the terminal it works as expected. I've also tried other variations on the program definition shown above including 1) not definingPREFECT_API_URL
at all, 2) defining it only withenvironment=...
, and 3) exporting it directlyexport PREFECT_API_URL=... && prefect start ...
.Any help is greatly appreciated!
Version info (
prefect version
output)Additional context
No response