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

[FEATURE REQUEST] pause server #904

Open
dcboy opened this issue Jul 18, 2024 · 1 comment
Open

[FEATURE REQUEST] pause server #904

dcboy opened this issue Jul 18, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dcboy
Copy link

dcboy commented Jul 18, 2024

Is your feature request related to a problem? Please describe.
I think I need to suspend a certain server node to receive and process tasks

Describe the solution you'd like
asynq server pause
asynq server unpause

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
When a certain node needs to be updated, I cannot directly kill the process. I must first suspend receiving tasks and wait for all current tasks to be executed before I can update.

@dcboy dcboy added the enhancement New feature or request label Jul 18, 2024
@pior
Copy link
Contributor

pior commented Nov 14, 2024

When a worker is interrupted, it will shutdown gracefully, by letting running tasks complete before stopping.

Is there a specific reason why you can't kill the process?

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

No branches or pull requests

3 participants