Commit d79ca44
committed
fix: fallback dispatch scheduler was reading empty master queue
The fallback path for schedulers without selectQueuesFromDispatch was
building allQueues from the dispatch index but then ignoring it and
calling scheduler.selectQueues with the old master queue key (which is
empty for new messages). Fixed to group the fetched queues by tenant
directly with capacity filtering.1 parent 8d0a826 commit d79ca44
File tree
2 files changed
+17
-17
lines changed- packages/redis-worker/src/fair-queue
- scripts
2 files changed
+17
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
968 | 967 | | |
969 | 968 | | |
970 | 969 | | |
971 | | - | |
972 | | - | |
| 970 | + | |
| 971 | + | |
973 | 972 | | |
974 | 973 | | |
975 | 974 | | |
| |||
981 | 980 | | |
982 | 981 | | |
983 | 982 | | |
984 | | - | |
985 | | - | |
| 983 | + | |
| 984 | + | |
986 | 985 | | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
987 | 990 | | |
988 | | - | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
989 | 994 | | |
990 | 995 | | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
| 996 | + | |
1001 | 997 | | |
1002 | 998 | | |
1003 | 999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
306 | 310 | | |
307 | 311 | | |
308 | 312 | | |
| |||
0 commit comments