hash
hash copied to clipboard
H-1323: Add `/workers` page, update flow run routes
π What is the purpose of this PR?
The PR introduces a /workers
page which lists all active worker runs. These may be 'goals' which are research-driven flows (the /goals
page to be introduced in the next PR), or other flows.
It also updates the routes for viewing:
- Flow definitions to
/@[namespace]/flows/[id]
- Worker runs (flows or goals) to
/@[namespace]/workers/[id]
These routes have essentially the same UI for now so they share a component. I've also updated the context providers so that we poll for all flow runs with fewer details (that doesn't require the event history) on a slower schedule, and the single selected flow run more frequently.
π Related links
- Design (internal)
π What does this change?
As well as the main changes above:
- Throws errors without a
cause
fromrun-workflow-run.ts
because the cause causes Temporal to not fail the workflow properly - Update the
persistFlow
activity to use the providedwebId
instead of always the user
Pre-Merge Checklist π
π’ Has this modified a publishable library?
This PR:
- [x] does not modify any publishable blocks or libraries, or modifications do not need publishing
π Does this require a change to the docs?
The changes in this PR:
- [x] are internal and do not require a docs change
πΈοΈ Does this require a change to the Turbo Graph?
The changes in this PR:
- [x] do not affect the execution graph
π‘ What tests cover this?
- None yet.