Commit d0b72c4
fix(sweep): retry on ingest failure, bound sweepWorkflowSeen to active sessions
Address review feedback on the workflow-ingest gate:
- A transient ingest failure previously stuck a session: the fingerprint was
recorded before the async ingest, so on rejection the session was skipped
until its artifacts changed again. Delete the fingerprint in .catch so the
next sweep retries it.
- sweepWorkflowSeen never evicted entries for sessions that went inactive, so
it grew unbounded over the process lifetime. Prune it to the current active
set at the start of each sweep.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 351dd40 commit d0b72c4
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
818 | 824 | | |
819 | 825 | | |
820 | 826 | | |
| |||
839 | 845 | | |
840 | 846 | | |
841 | 847 | | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
842 | 851 | | |
843 | 852 | | |
844 | 853 | | |
| |||
0 commit comments