mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #599] [FEATURE REQUEST] Ability to abort send signal to stop task #2317
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#2317
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 @surjit on GitHub (Jan 9, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/599
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
I have long running task which takes way long to complete. I found no way to cancel/abort those in-middle
Describe the solution you'd like
I want ability to cancel long running tasks. Currently job enqueue every time into redis, when I press cancel button on UI
@kamikazechaser commented on GitHub (Jan 16, 2023):
https://github.com/hibiken/asynq/wiki/Task-Timeout-and-Cancelation
@surjit commented on GitHub (Jan 16, 2023):
@kamikazechaser It's not what I'm looking for. task cancellation on on-demand. with not specific time
@kamikazechaser commented on GitHub (Jan 17, 2023):
The Inspector does that for you. It is implied in the last CLI section of the wiki page. https://pkg.go.dev/github.com/hibiken/asynq#Inspector.CancelProcessing
@safaci2000 commented on GitHub (Nov 2, 2023):
Can we add some documentation around that? I ended up putting all the pieces together but it'd be nice have some sample code.
Here's what I have.
Your redis "Client' needs to implement: asynq.RedisConnOpt