Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Inspect Task position in Queue by LPOS #1008

Open
slhmy opened this issue Jan 17, 2025 · 0 comments
Open

[FEATURE REQUEST] Inspect Task position in Queue by LPOS #1008

slhmy opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@slhmy
Copy link

slhmy commented Jan 17, 2025

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.

@slhmy slhmy added the enhancement New feature or request label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants