[GH-ISSUE #569] [FEATURE REQUEST] How can get taskID #1286

Closed
opened 2026-03-07 22:08:18 +03:00 by kerem · 1 comment
Owner

Originally created by @tonyjia87 on GitHub (Nov 3, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/569

Originally assigned to: @hibiken on GitHub.

I want to pause and stop tasks by taskID
How to get the corresponding taskID ?

Originally created by @tonyjia87 on GitHub (Nov 3, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/569 Originally assigned to: @hibiken on GitHub. I want to pause and stop tasks by taskID How to get the corresponding taskID ?
kerem 2026-03-07 22:08:18 +03:00
Author
Owner

@hibiken commented on GitHub (Dec 24, 2022):

Use TaskID field on TaskInfo (return value of Client.Enqueue).
Alternatively, you could Use Inspector to list task in specific state (e.g., Inspector.ListPendingTasks)

<!-- gh-comment-id:1364432319 --> @hibiken commented on GitHub (Dec 24, 2022): Use `TaskID` field on `TaskInfo` (return value of `Client.Enqueue`). Alternatively, you could Use `Inspector` to list task in specific state (e.g., `Inspector.ListPendingTasks`)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1286
No description provided.