[BUG] asynq stats: redis eval error: attempt to perform arithmetic on local 'bytes' (a boolean value)
Author: odkrjsCreated Jun 9, 2026Updated Jul 16, 2026
Labelsbug
Describe the bug
When running the asynq stats command, it throws a Redis Lua script error:
UNKNOWN: UNKNOWN: redis eval error: ERR user_script:30: attempt to perform arithmetic on local 'bytes' (a boolean value) script: 0c80fc1868e3aae205155ae2017ce995a3a7cec0, on @user_script:30.The error occurs because the variable bytes in the built-in Lua script is a boolean instead of a number, causing arithmetic operations to fail.
Environment (please complete the following information):
- OS:
CentOS Linux 7 asynqpackage version :asynq version 0.25.0- Redis Version: 7.0.11
- Redis Mode: standalone
To Reproduce Steps to reproduce the behavior:
- Run Asynq worker and enqueue normal tasks for a period of time.
- Execute the command
asynq statsto view queue statistics. - The above Redis Lua eval error is thrown immediately.
Expected behavior
asynq stats should normally display queue statistics without Lua script runtime errors.
Screenshots
Source: hibiken/asynq