Commit f04f45c
committed
agent: worker.Subscribe: start at most one log stream per task
Track task IDs for which a subscription has already started a log
stream.
A task may be present in the initial snapshot and also be delivered by
the watcher after it is registered. Use a shared helper for both paths
to ensure that only one log stream is started for each task.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>1 parent 3af02d0 commit f04f45c
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
645 | 655 | | |
646 | 656 | | |
647 | 657 | | |
648 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
649 | 662 | | |
650 | 663 | | |
651 | 664 | | |
| |||
660 | 673 | | |
661 | 674 | | |
662 | 675 | | |
663 | | - | |
664 | | - | |
665 | | - | |
| 676 | + | |
666 | 677 | | |
667 | 678 | | |
668 | 679 | | |
| |||
0 commit comments