Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefull shutdown documentation #100

Open
martinos opened this issue Feb 29, 2020 · 2 comments
Open

Gracefull shutdown documentation #100

martinos opened this issue Feb 29, 2020 · 2 comments

Comments

@martinos
Copy link

martinos commented Feb 29, 2020

I would like to know if there's a way to do a graceful shutdown of the Honeydew queues. For the moment I am calling the Honeydew.suspend() function on all queues and wait for a certain period of time. But I am wondering if there's a way to wait until all queues are suspended.

In my case I don't want jobs to be killed in the middle of their processing.

@koudelka
Copy link
Owner

koudelka commented Mar 1, 2020

Check out the docs for Honeydew.start_workers/3, specifically the :shutdown option.

That option is a pass-through to the worker's supervision spec, so you can give it any of the options from the Supervisor.Spec.shutdown type.

@martinos
Copy link
Author

martinos commented Mar 1, 2020

Thanks a lot, I will try that tomorrow.

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

No branches or pull requests

2 participants