yumechi-no-kuni/packages/backend
Balazs Nadasdi e2261b63e9
fix: clear queue endpoint error with redis script (#11037)
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 <efertone@pm.me>
2023-06-22 15:56:40 +09:00
..
.vscode Update settings.json 2022-04-15 21:33:00 +09:00
assets sw: なんかもうめっちゃ変えた (#10570) 2023-04-11 14:11:39 +09:00
migration tweak of f3a16bcd6 2023-06-10 17:41:52 +09:00
nsfw-model feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
src fix: clear queue endpoint error with redis script (#11037) 2023-06-22 15:56:40 +09:00
test fix backend e2e 2023-06-04 14:03:46 +09:00
.eslintignore use eslint 2021-11-12 10:35:41 +09:00
.eslintrc.cjs test(server): add validation test of api:notes/create (#10090) 2023-02-26 11:28:05 +09:00
.madgerc Create .madgerc 2022-09-20 01:04:08 +09:00
.swcrc Release: 13.7.2 (#10035) 2023-02-23 17:36:36 +09:00
check_connect.js fix check_connect.js 2023-04-14 05:14:00 +00:00
jest.config.cjs test(backend): APIテストの復活 (#10163) 2023-03-03 11:13:12 +09:00
jsconfig.json use eslint 2021-11-12 10:35:41 +09:00
ormconfig.js fix: postgre -> postgres (#9814) 2023-02-07 19:50:38 +09:00
package.json update deps 2023-06-02 11:34:38 +09:00
README.md chore: ✌️ 2022-12-24 14:39:17 +09:00
tsconfig.json test(server): add validation test of api:notes/create (#10090) 2023-02-26 11:28:05 +09:00
watch.mjs Revert "perf: build backend with swc (#9463)" 2023-01-13 09:32:56 +09:00

Misskey Backend