mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #1008] [FEATURE REQUEST] Inspect Task position in Queue by LPOS #2509
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#2509
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 @slhmy on GitHub (Jan 17, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1008
Originally assigned to: @hibiken, @kamikazechaser on GitHub.
Is your feature request related to a problem? Please describe.
Some like: while running asynq task inspect, the position of the task in a queue can also be printed.
Describe the solution you'd like
According to the official document, LPOS is available since Redis 6.0.6 which can get the elements index from a list. In this case we may simply query in the pending list, then we can get the task's position.
Describe alternatives you've considered
Give an option in the config to control wether this feature should be enabled (disabled by default?), which can hold the cases when some user is using Redis in version lower than 6.0.6.