mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #901] [BUG] After manually deleted redis keys, some of the features like metrics, inspector aren't working properly #1462
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#1462
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 @sailesh2341 on GitHub (Jul 10, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/901
Originally assigned to: @hibiken on GitHub.
Describe the bug
I have manually deleted one of the key from redis DB to remove one of the task under archive state from queue. After doing this asynqmon metrics stopped working and Inspector methods aren't working to get info of tasks/queue.
The error I'm getting both for metrics and Inspector methods are as follows:
asynq UNKNOWN: UNKNOWN: redis eval error: ERR Error running script (call to f_0c80fc1868e3aae205155ae2017ce995a3a7cec0): @user_script:30: user_script:30: attempt to perform arithmetic on local 'bytes' (a boolean value)
To Reproduce
I've tried many ways to resolve this error:
Nothing of these approaches worked. Since this issue was on production environment , i cannot flush all the redis DB data nor i cannot take any risky actions .
Has anyone else faced the same issue?
Can someone please tell me how do we resolve this issue?
@shchiv commented on GitHub (Mar 18, 2025):
@hibiken @kamikazechaser could you please look into this issue?
@AvilovAlex commented on GitHub (Apr 30, 2025):
same problem!
@kamikazechaser commented on GitHub (May 5, 2025):
@shchiv @AvilovAlex @sailesh2341 Do you recall the key that you deleted?
@shchiv commented on GitHub (May 5, 2025):
@kamikazechaser, honestly can't say exactly which one
But the issue happened after the update to the latest version, in which the keys format was changed (not sure that's the root cause), and got a lot of
redis eval errorwhen trying to use the inspector and GetQueueInfo, somewhere inside it is running eval@shchiv commented on GitHub (Jun 10, 2025):
hey @kamikazechaser do you have any updates ?
Could you please help clarify whether the repository is under development and if you are the main developer?
@ahmadaidin commented on GitHub (Jan 8, 2026):
I think I got the same issue here. the problem is
"MEMORY USAGE <key>"returning non number. the script is in./internal/rdb/inspect.gomemoryUsageCmdvariable.I tried to edit some lines by adding conditional
if type(bytes) == "number"and it runs well.here is the edited script
can you confirm if this change can solve your issue? @sailesh2341 @AvilovAlex