Gunicorn multiple workers #97
Replies: 1 comment 2 replies
-
Hi, and thanks! Always nice to hear others see it interesting as well! I have made a FastAPI implementation using Uvicorn. Perhaps this helps: https://github.com/Miksus/rocketry-with-fastapi (clone and use it as you wish) I haven't yet tested how it could be integrated with Gunicorn though but I suppose something similar as I did with Uvicorn could work. I at least realized that Uvicorn has its own exiting behaviour in which I had to hook Rocketry. Otherwise, Rocketry has no information that keyboard interruption was called. Do you manage with Uvicorn or did my answer provide any help? Unfortunately, I think pushing the newest update onward takes too much time at the moment to test other things out. |
Beta Was this translation helpful? Give feedback.
-
Hey just found out about this package and it looks awesome.
I am running a FastAPI service with gunicorn.
I was wondering is there a way to make only one of the workers schedule a task?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions