ui: show service DAGs apart from their runs

Merged
SC
21d ago
+4139-1332

Summary

Closes #3257 (UI part; the API landed in #3260).

Shows a service DAG (a DAG kept alive by restart_policy) as one object in the cockpit, the executions and the queues, and keeps its restart runs out of the run lists.

Changes

  • A "Service DAGs" strip with one card for each DAG (state, restart wait, and, when a card is opened, its last 20 runs) shows in the cockpit, the overview and the executions. The run lists pass excludeServiceDAGRuns.
  • A card says how many runs in a row failed and the error of the latest one, or why the state could not be read. Failing DAGs come first.
  • A search by DAG name, run ID or status still shows the runs of service DAGs, in the executions and the cockpit.
  • Queues: a "Service DAGs" section. The server lists a DAG queue only while a run is alive or waiting, so the card of a service DAG, and its queue page, show an idle queue between two runs.
  • The DAG list shows a service DAG as Enabled, or Stopped from the state of /service-dags.

Related Issues

Closes #3257

Checklist

  • Code follows the project style guidelines
  • Self-review of the code has been performed
  • Tests have been added or updated as needed
  • Documentation has been updated as needed
  • Changes have been tested locally