Workflows: two run lists that disagree, and five pollers on one revision #1950

Closed
opened 2026-11-13 02:49:20 +00:00 by sam · 1 comment
Owner

The page fetches every run while the editor fetches the last 20, so the Runs count and the canvas run picker disagree. Five subscribers re-fetch on the same tasks revision at 300 ms to 5 s, and step logs and transcripts add their own timers.

Done when: one run list feeds the picker and the Runs view, and live updates go through useLiveResource with one subscription per data set and no local timers.

The page fetches every run while the editor fetches the last 20, so the Runs count and the canvas run picker disagree. Five subscribers re-fetch on the same tasks revision at 300 ms to 5 s, and step logs and transcripts add their own timers. Done when: one run list feeds the picker and the Runs view, and live updates go through `useLiveResource` with one subscription per data set and no local timers.
sam added the highbug labels 2026-11-13 02:49:20 +00:00
sam added a new dependency 2026-11-13 02:52:15 +00:00
Author
Owner

Fixed in a5ba2c99. One run list (useWorkflowRuns, 50 runs, the API cap) now feeds the canvas run picker, the Runs count and the Runs view; the page's separate unlimited fetch and its tasks subscription for runs are gone, and follow() no longer reads stages twice. Step logs and the transcript keep their own timers while running: their lines arrive without a tasks revision bump, so the shared live store can't see them. task check passed.

Fixed in a5ba2c99. One run list (useWorkflowRuns, 50 runs, the API cap) now feeds the canvas run picker, the Runs count and the Runs view; the page's separate unlimited fetch and its tasks subscription for runs are gone, and follow() no longer reads stages twice. Step logs and the transcript keep their own timers while running: their lines arrive without a tasks revision bump, so the shared live store can't see them. task check passed.
sam closed this issue 2026-11-13 03:30:37 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1950