The admin range control moved almost nothing: the four tiles at the top were
fixed at thirty days, seven days and all time - the field names said so,
`cost_30d_usd` and `runs_failed_7d` - and the runs tab took the range and
dropped it. Everything on the page answers it now, and each tile says which
window it is showing.
The usage page mixed two windows: the tiles and the donut counted from the
first of the calendar month, the chart and the history counted back thirty
days. It is one window now, chosen by the person, «الكل» included - the
endpoint already took `days` and the client had never sent it.
And a run that was over kept getting longer. Three paths left `finished_at`
NULL on a terminal run - the worker's startup sweep, the crash handler outside
the engine, and the step rows under both - and a missing end time reads as
«still going». Those paths write the ending now, and a migration closes the
rows already in the table.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ContiAI platform: API and queue worker in one container (part 2)