Skip to content
Snippets Groups Projects
  1. Jul 03, 2023
  2. Jul 02, 2023
  3. Jul 01, 2023
  4. Jun 30, 2023
  5. Jun 28, 2023
  6. Jun 26, 2023
  7. Jun 25, 2023
  8. Jun 24, 2023
  9. Jun 23, 2023
  10. Jun 22, 2023
    • Balazs Nadasdi's avatar
      fix: clear queue endpoint error with redis script (#11037) · e2261b63
      Balazs Nadasdi authored
      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: default avatarEfertone <efertone@pm.me>
  11. Jun 20, 2023
Loading