mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #624] [FEATURE REQUEST] Pause queue for duration #304
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#304
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sainak on GitHub (Mar 6, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/624
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
I ran into a use case where I want the queue to be unpaused after some defined time, but currently there is no inbuilt method to set pause timeout, so we need to manually set a timer to unpause a queue after n seconds.
Describe the solution you'd like
In the current implementation, we are always setting the expiration time to 0
github.com/hibiken/asynq@cc777ebdaa/internal/rdb/inspect.go (L1974)I would suggest having a
PauseForDurationmethod exposed to the inspector that would set the pause key for the given durationDescribe alternatives you've considered
@ajatprabha commented on GitHub (Mar 14, 2023):
If this use-case is also similar where queue must be paused for sometime and then resume.
This issue and #590 might be good candidates to be picked up together.
I wanted to achieve this to mitigate load on upstream calls in case of large downtime.