mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #261] [FEATURE REQUEST] Ability to cancel pending tasks via inspeq #1114
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#1114
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 @f-ld on GitHub (Apr 7, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/261
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
We use asynq to queue tasks to be handled by a pool of handlers.
For some reason, me might have a lot of tasks queued (for a bug, a stress test, ...) and we would like to be able, for example from the inspector, to cancel them
Describe the solution you'd like
After getting some task ID running for example this:
I would like to be able to run:
to cancel a comma separated list of pending task from their IDs
Describe alternatives you've considered
redis-cliandLREMto remove some elements from matching list orLTRIMin desperate conditionsAdditional context
N/A
@hibiken commented on GitHub (Apr 7, 2021):
@f-ld Thank you for opening this issue.
By looking at the command output, it looks like you are using an older version of
asynqpackage.Deleting pending tasks is supported in the latest version, so if you could upgrade to the latest the following command is what you need:
Alternative to the CLI tool is the Asynqmon Web UI.
Once you upgrade the package to the latest version, you should be able to use the Web UI to inspect the tasks in your queues.
Also, when you upgrade package version, please take a look at the CHANGELOG.
You may need to run
asynq migratecommand to migrate all existing tasks to work with the new package (it may be a good idea to create a backup in case the migration fails)Please let me know if this doesn't work for you.
@hibiken commented on GitHub (Apr 13, 2021):
Closing this issue.
Feel free to re-open the issue if you still need assist 👍
@f-ld commented on GitHub (Apr 16, 2021):
Yes, sorry for the late reponse, running on various topics and this one is only one of them.
Using asynq 0.17.1 inspeq I could implement something cancelling obsolete task from queue (or cancel them and create new ones). That is super nice feature and module, thank you.