Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Graceful shutdown #231

Closed
mohamedhafez opened this issue Dec 9, 2015 · 3 comments
Closed

Graceful shutdown #231

mohamedhafez opened this issue Dec 9, 2015 · 3 comments

Comments

@mohamedhafez
Copy link

Is there a way to gracefully shut down a process started with torquebox run? (completing existing requests but rejecting new ones, then shutting down). If so, could it be put into the documentation?

@bbrowning
Copy link
Member

We do attempt to shut things down gracefully if you CTRL+C or send a SIGINT to the torquebox process. I actually don't know if this waits for in-flight requests to complete or terminates them abruptly. It would be worth a test to see how it behaves.

@mohamedhafez
Copy link
Author

They are definitely terminated abruptly, I tried SIGINT and SIGTERM before posting this issue and in-flight requests were dropped.

@mohamedhafez
Copy link
Author

Finishing in flight requests while rejecting new ones with a 502 or 503 would be great because it would allow zero downtime deploys via nginx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants