Skip to content

Is there a way to cancel the task according to the taskid without using the cli? #695

Answered by aaps3579
hungtcs asked this question in Q&A
Discussion options

You must be logged in to vote

Use the inspector client API provided to cancel the task.
asynq.NewInspector(<connection_opts>).CancelProcessing("<your_task_id>")

For more info on available methods https://github.com/hibiken/asynq/blob/master/inspector.go#L26

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hungtcs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants