mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #414] [QUESTION] how to delete a delay task #183
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#183
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 @hzylyq on GitHub (Mar 7, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/414
Originally assigned to: @hibiken on GitHub.
how delete task
@lvsoso commented on GitHub (Mar 7, 2022):
use this API to delete or cancel ?
https://github.com/hibiken/asynq/blob/master/inspector.go#L508
@hibiken commented on GitHub (Mar 8, 2022):
@hzylyq Thanks for opening an issue!
The API suggested by @lvsoso should do what you want 👍
Note:
Inspector.DeleteTaskapplies to non-active tasks, if you need to cancel an active task, please useInspector.CancelProcessinginstead.