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

fix: clear queue endpoint error with redis script #11037

Merged
merged 1 commit into from
Jun 22, 2023

Commits on Jun 19, 2023

  1. fix: clear queue endpoint error with redis script

    Error message:
    ```
    ReplyError: ERR value is not an integer or out of range script: 720d973b3877f92b4fb3285ced83c97cdd204979, on @user_script:209.
    ```
    
    The whole error can be tracked back to one of the arguments, which is
    `Infinity` in the codebase, but it has to be a number.
    
    The documentation in bullmq says `0` is unlimited[^1], and bullmq tries to
    parse the argument with `tonumber` which returns with `-9223372036854775808` if
    the argument is `"Infinity"` which is out of bound.
    
    ```
    127.0.0.1:6379> eval 'return tonumber(ARGV[3])' '2' 'slippy.xyz:queue:inbox:inbox:delayed' 'slippy.xyz:queue:inbox:inbox:events' 'slippy.xyz:queue:inbox:inbox:' '1687183763944' Infinity 'delayed'
    (integer) -9223372036854775808
    127.0.0.1:6379>
    ```
    
    [^1]: https://github.com/taskforcesh/bullmq/blob/master/src/commands/cleanJobsInSet-2.lua#L10
    
    Signed-off-by: Efertone <[email protected]>
    yitsushi committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    8250353 View commit details
    Browse the repository at this point in the history