[GH-ISSUE #284] Ability to get the status of a task by id #113

Closed
opened 2026-03-02 05:18:46 +03:00 by kerem · 2 comments
Owner

Originally created by @Harrison-Miller on GitHub (Jun 23, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/284

Originally assigned to: @hibiken on GitHub.

Is your feature request related to a problem? Please describe.
Currently when using the inspector to find the status of a task you need to loop through every task of each status type. Which is really inconvenient.

ListPendingTasks...
ListActiveTasks...
ListScheduledTasks...
ListArchivedTasks...

Describe the solution you'd like
I would like to be able to get the task status and metadata using inspector.
GetTaskByID

Originally created by @Harrison-Miller on GitHub (Jun 23, 2021). Original GitHub issue: https://github.com/hibiken/asynq/issues/284 Originally assigned to: @hibiken on GitHub. **Is your feature request related to a problem? Please describe.** Currently when using the inspector to find the status of a task you need to loop through every task of each status type. Which is really inconvenient. ``` ListPendingTasks... ListActiveTasks... ListScheduledTasks... ListArchivedTasks... ``` **Describe the solution you'd like** I would like to be able to get the task status and metadata using inspector. `GetTaskByID`
kerem 2026-03-02 05:18:46 +03:00
Author
Owner

@crossworth commented on GitHub (Jun 23, 2021):

Hi, looks like that in the next version we will have: GetTaskInfo(qname, id string) (*TaskInfo, error).

Commit: github.com/hibiken/asynq@26d035e050

<!-- gh-comment-id:867046409 --> @crossworth commented on GitHub (Jun 23, 2021): Hi, looks like that in the next version we will have: `GetTaskInfo(qname, id string) (*TaskInfo, error)`. Commit: https://github.com/hibiken/asynq/commit/26d035e0506c7a11ed0212f911ab785b3998bc6c
Author
Owner

@Harrison-Miller commented on GitHub (Jun 23, 2021):

Perfect, I also appreciate the consolidation of the different task types into a single struct.

<!-- gh-comment-id:867050627 --> @Harrison-Miller commented on GitHub (Jun 23, 2021): Perfect, I also appreciate the consolidation of the different task types into a single struct.
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#113
No description provided.