-
In some cases, I need to cancel the task across processes. |
Beta Was this translation helpful? Give feedback.
Answered by
aaps3579
Aug 11, 2023
Replies: 1 comment
-
Use the inspector client API provided to cancel the task. For more info on available methods https://github.com/hibiken/asynq/blob/master/inspector.go#L26 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hungtcs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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