[GH-ISSUE #904] [FEATURE REQUEST] pause server #2474

Open
opened 2026-03-15 20:36:37 +03:00 by kerem · 1 comment
Owner

Originally created by @dcboy on GitHub (Jul 18, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/904

Originally assigned to: @hibiken on GitHub.

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.

Originally created by @dcboy on GitHub (Jul 18, 2024). Original GitHub issue: https://github.com/hibiken/asynq/issues/904 Originally assigned to: @hibiken on GitHub. **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.
Author
Owner

@pior commented on GitHub (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?

<!-- gh-comment-id:2475811579 --> @pior commented on GitHub (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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2474
No description provided.