FastAPI gunicorn run scheduled job only on one worker

Viewed 158

I have a fastapi server that is running 4 workers via gunicorn. I want to run a background / scheduled job in only one (any one) of the worker instead of all 4. How do i ensure that?

0 Answers
Related