Commit 2d66576
authored
refactor(query-orchestrator): LocalQueue driver - correct handling for pending/active (#9706)
I did a refactor for the `LocalQueue` driver. Previously, while the `LocalQueue` driver processed the queue item, it stored it in the pending and active states. Both states at the same time. This approach is not aligned with any queue servers.
Cube Store has a strict obligation that a queue item can be in only one state at a time. Let's align it to simplify upcoming changes in #9705.1 parent 9b8e95a commit 2d66576
File tree
3 files changed
+32
-31
lines changed- packages
- cubejs-cubestore-driver/src
- cubejs-query-orchestrator/src/orchestrator
3 files changed
+32
-31
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| 296 | + | |
294 | 297 | | |
295 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
296 | 301 | | |
297 | 302 | | |
| 303 | + | |
298 | 304 | | |
299 | 305 | | |
300 | 306 | | |
| |||
Lines changed: 24 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
584 | 579 | | |
| 580 | + | |
585 | 581 | | |
586 | 582 | | |
587 | 583 | | |
| |||
627 | 623 | | |
628 | 624 | | |
629 | 625 | | |
630 | | - | |
| 626 | + | |
631 | 627 | | |
632 | 628 | | |
633 | 629 | | |
| |||
644 | 640 | | |
645 | 641 | | |
646 | 642 | | |
647 | | - | |
| 643 | + | |
648 | 644 | | |
649 | 645 | | |
650 | 646 | | |
651 | 647 | | |
652 | 648 | | |
653 | | - | |
654 | | - | |
| 649 | + | |
655 | 650 | | |
656 | 651 | | |
657 | 652 | | |
658 | | - | |
659 | 653 | | |
660 | 654 | | |
661 | 655 | | |
662 | 656 | | |
663 | 657 | | |
664 | 658 | | |
665 | 659 | | |
666 | | - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
667 | 664 | | |
668 | 665 | | |
669 | 666 | | |
| |||
0 commit comments