Pull pipeline/ from boilerplate a80ad8a: cadence picker, queue badge, label refresh

The schedule cadence is a picker, the add row is behind a button and off
here, a running-jobs chip with Kill and Stop run sits in every header, and
a declared schedule's label is refreshed at startup.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-28 16:22:46 +02:00
1 parent cebe62ddc9
commit 3a240e51df
16 files changed
+828 -167

No files matched your search

+14 -6
View File
@@ -669,12 +669,16 @@ class JobQueue:
"""Give every declared default a row, and leave every existing one be.
The whole of what a declaration buys: a name nothing has a row for gets
one, and a name that does have one is not touched — not its cadence,
not its payload, not whether it is switched on. So the declarations in
an app's jobs module are where a schedule *comes from*, and the table
is what it *is*; turning one off in the UI survives the next deploy,
and changing one in the code reaches only the installs that never had
it.
one, and a name that does have one keeps its cadence, its payload and
whether it is switched on. So the declarations in an app's jobs module
are where a schedule *comes from*, and the table is what it *is*;
turning one off in the UI survives the next deploy, and changing a
cadence in the code reaches only the installs that never had it.
The label is the one exception. No screen edits it, so the row's copy
is only ever the declaration's, and a relabelled declaration that
reached no existing install would leave the old wording on screen
forever. It is refreshed while the row still has the declared kind.
Which is also why nothing here deletes. A declaration that goes away
leaves its row behind, `unknown kind` against it if the handler went
@@ -692,6 +696,10 @@ class JobQueue:
if row is not None:
log.info("schedule %r declared: %s %s, first at %s",
row.name, row.kind, row.cadence, row.next_run)
elif self.jobs.relabel_schedule(declared.name, declared.kind,
declared.label):
log.info("schedule %r relabelled %r", declared.name,
declared.label)
def _fire_due(self) -> None:
"""Queue a job for every schedule whose time has come. One pass.