yumechi-no-kuni/packages/backend/src/core
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
..
activitypub fix(backend): キャッシュが溜まり続けないように 2023-06-10 13:45:11 +09:00
chart refactor 2023-05-29 13:21:26 +09:00
entities feat: 公開リスト (#10842) 2023-05-19 10:06:12 +09:00
AccountMoveService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
AccountUpdateService.ts feat: account migration (#10507) 2023-04-08 14:16:26 +09:00
AchievementService.ts add new achievement 2023-04-20 19:40:02 +09:00
AiService.ts chore: fix import position 2022-12-04 17:05:32 +09:00
AntennaService.ts refactor 2023-05-29 13:21:26 +09:00
AppLockService.ts fix types 2023-04-14 13:50:05 +09:00
CacheService.ts fix(backend): キャッシュが溜まり続けないように 2023-06-10 13:45:11 +09:00
CaptchaService.ts enhance(backend): migrate bull to bullmq (#10910) 2023-05-29 11:54:49 +09:00
CoreModule.ts feat: Introduce Meilisearch (#10755) 2023-05-05 08:52:14 +09:00
CreateSystemUserService.ts Role (#9437) 2023-01-12 21:02:26 +09:00
CustomEmojiService.ts fix(backend): キャッシュが溜まり続けないように 2023-06-10 13:45:11 +09:00
DeleteAccountService.ts enhance(backend): improve cache 2023-04-05 10:21:10 +09:00
DownloadService.ts Fix?(server): Content-Dispositionのパースでエラーが発生した場合にもダウンロードが完了するように 2023-04-15 11:19:00 +00:00
DriveService.ts ロールにNSFWを強制的につけるオプションを追加 (#10731) 2023-05-05 14:18:06 +09:00
EmailService.ts refactor: introduce bindThis decorator to bind this automaticaly 2022-12-04 15:03:09 +09:00
FederatedInstanceService.ts fix(backend): キャッシュが溜まり続けないように 2023-06-10 13:45:11 +09:00
FetchInstanceMetadataService.ts enhance(backend): migrate bull to bullmq (#10910) 2023-05-29 11:54:49 +09:00
FileInfoService.ts [fix] .wav .flac ファイルを再生可能にする (#10686) 2023-04-26 02:17:58 +09:00
GlobalEventService.ts fix types 2023-04-14 13:50:05 +09:00
HashtagService.ts drop hashtag chart 2023-02-03 14:10:14 +09:00
HttpRequestService.ts fix(server): HttpRequestService.sendでは常にUser-Agentを含むように 2023-02-14 04:08:56 +00:00
IdService.ts fix(server): IdService.parseを全てのidタイプに対応させるように (#10533) 2023-04-09 04:41:06 +09:00
ImageProcessingService.ts enhance(server): 画像圧縮周り(主にサムネイルの仕様)の変更 (#10287) 2023-03-11 14:11:40 +09:00
InstanceActorService.ts perf(backend): cache local custom emojis 2023-04-06 11:14:43 +09:00
InternalStorageService.ts chore: fix import position 2022-12-04 17:05:32 +09:00
LoggerService.ts drop syslog 2023-02-03 15:08:36 +09:00
MetaService.ts refactor 2023-05-29 13:21:26 +09:00
MfmService.ts feat: カスタム絵文字ごとにそれをリアクションとして使えるロールを設定できるように 2023-05-18 18:45:49 +09:00
ModerationLogService.ts refactor: introduce bindThis decorator to bind this automaticaly 2022-12-04 15:03:09 +09:00
NoteCreateService.ts refactor 2023-05-29 13:21:26 +09:00
NoteDeleteService.ts enhance(backend): リモートサーバーのチャート生成を無効にするオプションを追加 2023-03-24 19:08:08 +09:00
NotePiningService.ts refactor: fix types 2023-02-12 18:47:30 +09:00
NoteReadService.ts refactor 2023-05-29 13:21:26 +09:00
NotificationService.ts refactor 2023-05-29 13:21:26 +09:00
PollService.ts refactor: remove all unused imports (#9951) 2023-02-16 23:09:41 +09:00
ProxyAccountService.ts refactor: remove all unused imports (#9951) 2023-02-16 23:09:41 +09:00
PushNotificationService.ts fix(backend): キャッシュが溜まり続けないように 2023-06-10 13:45:11 +09:00
QueryService.ts enhance: タイムラインにフォロイーの行った他人へのリプライを含めるかどうかの設定をアカウントに保存するのをやめるように 2023-05-16 12:16:37 +09:00
QueueModule.ts refactor 2023-05-29 13:21:26 +09:00
QueueService.ts fix: clear queue endpoint error with redis script (#11037) 2023-06-22 15:56:40 +09:00
ReactionService.ts feat: センシティブなカスタム絵文字のリアクションを受け入れない設定を追加 2023-05-19 09:43:38 +09:00
RelayService.ts perf(backend): cache local custom emojis 2023-04-06 11:14:43 +09:00
RemoteLoggerService.ts refactor: remove all unused imports (#9951) 2023-02-16 23:09:41 +09:00
RemoteUserResolveService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
RoleService.ts fix(backend): キャッシュが溜まり続けないように 2023-06-10 13:45:11 +09:00
S3Service.ts regionが空文字列のときはundefinedとする (#10410) 2023-03-25 18:45:14 +09:00
SearchService.ts fix(backend): ひとつのMeilisearchサーバーを複数のMisskeyサーバーで使えない問題を修正 2023-05-11 21:09:29 +09:00
SignupService.ts fix 2023-05-02 16:21:18 +00:00
TwoFactorAuthenticationService.ts chore: fix import position 2022-12-04 17:05:32 +09:00
UserBlockingService.ts feat: queueing bulk follow/unfollow and block/unblock (#10544) 2023-04-12 09:13:58 +09:00
UserFollowingService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
UserKeypairService.ts fix(backend): キャッシュが溜まり続けないように 2023-06-10 13:45:11 +09:00
UserListService.ts feat: queueing bulk follow/unfollow and block/unblock (#10544) 2023-04-12 09:13:58 +09:00
UserMutingService.ts fix 2023-04-05 13:50:05 +09:00
UserSuspendService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
UtilityService.ts enhance: Judge instance block by endsWith (#9263) 2023-01-13 18:21:07 +09:00
VideoProcessingService.ts enhance(server): 動画サムネイルの縦の長さを最大422pxにする 2023-04-02 15:49:07 +00:00
WebfingerService.ts feat: カスタム絵文字ごとにそれをリアクションとして使えるロールを設定できるように 2023-05-18 18:45:49 +09:00
WebhookService.ts refactor 2023-05-29 13:21:26 +09:00