docs: use one word for each way a service DAG executes again
Summary
Closes #3271.
Spec 080, the JSON schema and the API descriptions used several words for what loop_wait_sec does ("repeat its steps", "run again", "pass", "cycle", "loop") and "restart cycle" for a restart. This PR gives each word one meaning and uses it everywhere in the text of the loop feature. No field, value or behavior changes.
Stacked on #3263 (and so on #3261). Review only the last commit.
Changes
-
Spec 080 gets a list of its terms:
Word Meaning run One execution of a DAG, with one run ID. restart The scheduler starts a new run of a service DAG. loop A run executes all the steps of its DAG again, in the same run. cycle One execution of all the steps of a run that loops. repeat A step executes again in the same run, as Spec 075 defines. retry A failed attempt of a step executes again. attempt One execution of a step. -
The Loop and Run Loop sections, the examples and the "Related Specs" entry use these words. "pass" and "run again" are gone.
-
The
loop_wait_secandloop_on_failuredescriptions indag.schema.jsonand in the API use the same words and say "execute" for steps. The description ofloop_wait_sec: 0now says what happens: the run ends after the steps, andrestart_policystarts a new run. -
api.gen.goandui/src/api/v1/schema.tsare regenerated for the new descriptions.
Spec 075 is not changed. The field names stay: repeat_wait_sec would sit next to restart_wait_sec in one DAG, and the two look alike.
Related Issues
Closes #3271. Related: #3255, #3259.
Checklist
- Code follows the project style guidelines
- Self-review of the code has been performed
- Tests have been added or updated as needed (text only)
- Documentation has been updated as needed
- Changes have been tested locally
Tested with make api, go build ./... and the schema tests.
Summary by cubic
Adds loop_wait_sec and loop_on_failure so a run of a service DAG can execute its steps again in the same run, and shows each service DAG as one object in the UI instead of a run per restart.
- The UI shows a "Service DAGs" strip in the cockpit, overview, and executions pages with each DAG's state, restart wait, and recent runs, failing ones first. Restart runs stay out of run lists and activity streams unless searched by name or status; a queue owned by a service DAG is drawn as the DAG when idle.
- A looping run reports its current and failed cycles in the run status, and each cycle starts its own child runs so steps run fresh. A stop during the wait or after a cycle ends the run as aborted, so
unless-stoppedsees it. Spec 080, the JSON schema, and API descriptions now give run, restart, loop, cycle, repeat, retry, and attempt one meaning each. Closes #3271.
Summary by CodeRabbit
-
New Features
- Added DAG restart policies (
always,unless-stopped) with configurable restart delays and loop behavior. - Added Always-On DAG views, status monitoring, run history, activity lanes, cockpit panels, and queue indicators.
- Added cycle and failed-cycle details for looping runs.
- Added restart-triggered runs and filters to exclude Always-On runs from activity and run lists.
- Added DAG restart policies (
-
Bug Fixes
- Manual restart is now refused for Always-On DAGs with clear guidance.
- Improved status handling and recovery after worker or scheduler interruptions.
-
Documentation
- Added restart-policy specification, validation guidance, and CLI documentation.