mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-04 21:31:48 +00:00
Since #4009 the scheduler keeps a long-term history of the runs of each service DAG, but nothing read it. Three API routes now serve it: the samples in buckets, the failed, recovered and gap events, and the availability of four windows, each with its uptime. A sample is written only when a run ends, so the routes add the run in progress to the uptime at the time of the query, without counting the time the history already recorded. A DAG that is no longer a service DAG keeps serving its history, and its live run adds no up time. A plain DAG with no history gets 404. StepSamples and StepAvailability become aliases of the shared schemas, so the step routes answer as before. A conformance suite checks the routes against a real scheduler and server.