#1146·asynq

[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
  • asynq package version : asynq version 0.25.0
  • Redis Version: 7.0.11
  • Redis Mode: standalone

To Reproduce Steps to reproduce the behavior:

  1. Run Asynq worker and enqueue normal tasks for a period of time.
  2. Execute the command asynq stats to view queue statistics.
  3. The above Redis Lua eval error is thrown immediately.

Expected behavior asynq stats should normally display queue statistics without Lua script runtime errors.

Screenshots

Image