Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: let a paused schedule's fire now send its message as a broadcast

Fire now was disabled on a paused schedule because the controller fires nothing
while it is paused. It is enabled now and, after a confirmation, sends the
schedule's message to its agents through the broadcast route, leaving the
schedule paused with its start unchanged. A toast says who got it, and the error
banner names the agents that did not.
This commit is contained in:
iris 2026-11-25 18:19:11 +01:00
commit 09de25b0ed

View file

@ -491,7 +491,10 @@ title, with the **agents** it fires for, the message, how often it repeats and
when it fires next. **edit** turns the card into its own form; **fire now** sends
`PATCH /api/schedules/{id}` with the current second as `anchor_unix`, so a start
that has passed fires its latest time right away and a repeating schedule goes on
from there at its interval (a paused schedule has no fire now); **pause** and
from there at its interval. On a paused schedule **fire now** sends the message
to its agents as a broadcast (`POST /api/agents/broadcast`) after a
confirmation and leaves the schedule paused with its start unchanged; a toast
says who got it, and the error banner names any agent that didn't. **pause** and
**resume** stop and restart it; **remove** deletes it after a confirmation.
**+ schedule** opens an empty form above the list, and the filters narrow the
list by name, agent or state (`active`, `paused`, or `past` for a one-shot