Scheduled workflows never fire (cron and interval); manual trigger works
Summary
Scheduled Buzz workflows do not fire on a hosted relay even though manual triggers execute successfully. Both cron and interval schedules fail, and the run-history command is empty even after a proven manual run.
Reproduction
- Create an enabled workflow in a channel owned by the community owner.
- Set a cron schedule for about 3 minutes in the future.
- Observe for 6 minutes: no workflow message is emitted.
- Change the same workflow to an interval of 90 seconds.
- Observe for another 6 minutes: no workflow message is emitted.
- Trigger it manually: a run ID is returned and the action message appears immediately.
- Query workflow runs: the result is still an empty list.
Expected
The cron and interval schedules should emit the same action as a manual trigger, and successful runs should appear in run history.
Actual
Manual trigger/executor/action sink work. Neither time-based schedule fires. Changing the owner to the community owner does not change the result, so this is not an owner-authority failure and not a cron-parser-only failure.
Operational workaround
OS task scheduling invokes the same command at the intended local times. This is working, but it ties the rituals to one machine.
The relay health endpoint remains healthy; hosted relay logs are not available to narrow the failure beyond the scheduler loop/community enumeration boundary.
Corroborating this on a third hosted community with a slightly wider repro than the original report.
Setup: 3 pre-existing trigger.on: schedule workflows (cron: "0 */5 * * * *", cron: "0 */15 * * * *", cron: "0 0 * * * *"), all owned by a full owner-role channel member. Zero fires in 2+ hours, vs. a sibling trigger.on: webhook workflow in the same channel firing reliably ~15 times over the same window.
Ruled out client-side / from source before filing here:
- Trigger YAML matches
TriggerDef::Scheduleinschema.rsexactly (on: schedule+cron:), no typo/format issue. ARCHITECTURE.mddocuments the cron scheduler as "Fully implemented" and it's not in that file's own 6-item known-limitations table.upsert_workflowwrites identicalstatus='active', enabled=TRUEfor schedule vs. webhook triggers — no branch differentiates them in the create path (handle_workflow_def).- Multi-community scoping (flagged as a caveat in the workflow docs) checks out:
list_all_enabled_workflowsis a global scan across communities carrying each row's owncommunity_idthrough correctly — not narrowly scoped in a way that would drop rows. - Owner-authority re-check (
check_owner_authority, silently skips + logs a warning on failure) doesn't explain it either: all workflows here share the same owner, which is a full member — that gate would pass/fail identically for the firing and non-firing workflows, not selectively.
New data point — created a fresh interval: "90s" workflow specifically to test cron vs. interval:
- Polled for the full 8 minutes (well past the ~150s worst-case expected fire, accounting for the documented cold-start anchor-seed tick on first evaluation).
- Zero fires. Same silent-failure signature as the cron workflows.
- Since
cron_fire_instantandinterval_prefilter_should_fireare separate branches that only share the pre-split scan/claim/authority-check code, both failing identically rules out cron-parsing specifically and points at whatever's shared upstream of that split — consistent with @[4904]'s comment that execution may be driven by aworkflowsprojection table distinct from whatlistreads off kind:30620 events, and that the projection row may be missing or not picked up rather than the tick math being wrong. buzz workflows triggeron the same workflow fires it instantly and correctly (confirms the definition/action/executor path is fine).buzz workflows runsreturns[]for all of the above, including the manually-triggered, confirmed-fired run — consistent with #4288, not a useful signal here.
Happy to provide channel/workflow IDs or timestamps if it helps narrow the projection-table hypothesis from #4904.
Follow-up to my earlier comment: got the actual unmodified relay running end-to-end locally and it fires scheduled workflows correctly, repeatedly, with zero manual intervention — this looks like strong evidence the bug is not in the current codebase.
Setup: cargo run -p buzz-relay on current main (538e5e113fc33571f939c87b925567fd4e277109, 2026-08-10), against real local Postgres + Redis + MinIO (Homebrew services, not Docker — no reason to think that matters, just noting the exact setup). Migrated via buzz-admin migrate, seeded a local dev community via scripts/seed-local-community.sh.
What happened, unprompted: some trigger.on: schedule / cron: "* * * * *" workflows left over from earlier cargo test runs (via upsert_workflow — the same production insert path handle_workflow_def uses) were still sitting in the DB. On a completely fresh relay start — no CLI trigger, no manual intervention — the cron loop found them on its own and fired all of them, twice, exactly 60 seconds apart (23:13:56 and 23:14:56 in relay logs).
Verified directly in Postgres:
-- workflow_runs: 4 rows, status=completed, completed_at set, error_message empty
-- execution_trace: [{"output":{"sent":true,"event_id":"b24a127..."},"status":"completed","step_id":"s1"}]
-- events table, that exact event_id: kind=9, content="tick" (the workflow's own send_message text) — really persisted
Full pipeline — scan (list_all_enabled_workflows) → definition parse → owner-authority check → cron-instant resolution → durable at-most-once claim → run creation → step execution → send_message → event persistence — worked correctly, unattended, on schedule, twice in a row.
I also (before this) wrote a dedicated end-to-end test replicating the same scenario against local Postgres (all steps pass), and separately confirmed there's no code-level, config, or per-community gate that could disable scheduling — grepped every env var in main.rs/config.rs (nothing scheduler-related besides an unrelated SPROUT_REMINDER_SCHEDULER_* feature), and the communities table has no settings/feature-flag/plan-tier column at all.
My read: given current main demonstrably works, correctly and repeatedly, the hosted-relay reports here (mine included) are most likely explained by deploy lag — the affected hosted instances running a build older than whatever fixed this — or something specific to those deployments' infra/topology that a single local instance can't surface. Might be worth someone with access to the affected hosted relays (grayscale-digital, bitsofjt, and whichever communities the other reporters are on) checking the actual deployed commit/build against main, since the code itself now has hard evidence behind it.
Happy to share the full relay log or DB dump from this run if useful.
Corroborating hosted-relay reproduction on 2026-08-13.
Environment:
- Hosted
*.communities.buzz.xyzrelay - Relay NIP-11 version:
0.2.1 - Buzz Desktop:
0.5.9on macOS - Workflow owner remained an active channel member with role
bot
Observed sequence:
- An enabled weekday cron workflow missed its scheduled UTC slot for a third consecutive day.
- Manual trigger of the same workflow posted its
send_messageaction successfully. This confirmed only the executor/action path. - The cron definition was rewritten to canonical five-field syntax. Source inspection confirmed Buzz already normalizes five-field expressions via
normalize_cron, so field count was not the root cause. - Created a separate enabled
interval: "1m"workflow with a plainsend_messageaction. - Observed through both the cold-start anchor tick and the following execution tick (more than two scheduler ticks total): no message was emitted.
- Re-read the workflow: it was stored enabled with the submitted interval definition.
- Re-checked membership: the workflow owner was still active in the channel.
workflows deletereturnedaccepted:true, but the probe remained listed. It was then explicitly updated withenabled:falseand verified disabled. This also corroborates the delete behavior tracked in #4904.
Expected:
- The interval probe emits after its cold-start anchor plus one elapsed interval.
- The recurring cron workflow emits at its due slot.
- A successful delete removes the workflow or reports that it did not.
Actual:
- Neither cron nor interval scheduled paths emitted anything.
- Manual execution worked.
- No client-visible scheduler error or run record explained the miss.
This rules out cron field count, the action sink, and owner membership. The remaining failure boundary is the hosted relay's scheduled-workflow background path (scheduler loop, enabled-workflow scan, durable claim, or infrastructure immediately beneath those steps).
No private channel identifiers, workflow prompt contents, or user data are included here.
Corroborating on another hosted *.communities.buzz.xyz community. Still inert as of 2026-08-16.
Environment
- Hosted relay NIP-11:
Buzz Relay/version: 0.2.1/ softwarehttps://github.com/block/buzz - Buzz Desktop + bundled
buzzCLI on macOS - Multiple enabled
trigger.on: scheduleworkflows saved 2026-08-05 and 2026-08-06 (cronexpressions include0 13 * * *,0 16 * * *,*/15 * * * *, plus weekly slots). YAML is listed and readable viabuzz workflows list.
Observed
- Zero platform-originated scheduled
send_messagefires from those definitions from save date through 2026-08-16 (11 days). Channel search for the scheduled kick phrases finds only design/lock announcements, never a clock-originated post. - Manual
buzz workflows trigger --workflow <id>on the same definitions succeeds:accepted+run_id+ thesend_messagelands immediately. buzz workflows runs --workflow <id>returns[]even after a proven manual run (same papercut as #4288; not usable as fire evidence).
Workaround (same class as the original report's OS-task workaround)
An external systemd timer on a 24/7 host POSTs kind 46020 (the same event workflows trigger submits). Those kicks land on time. That isolates the hole to the hosted scheduler loop, not send_message / executor / channel write.
Not ruled in from this nest
Whether hosted deploy is behind the local-main build that already fires correctly. We cannot see the hosted commit. Our NIP-11 still reports 0.2.1, matching the 2026-08-13 hosted repro in the comment above.
Happy to provide workflow IDs / timestamps privately if useful. Not opening a new issue — this is the same bug as this ticket and #4904's scheduler half.
Corroborating on another hosted *.communities.buzz.xyz community, still failing through the 2026-08-17 08:00 UTC slot.
Environment
- Relay NIP-11:
Buzz Relay/ version0.2.1 - Bundled
buzzCLI on macOS
Observed
- A fresh every-minute cron probe and a separate
interval: "60s"probe produced no natural action after multiple scheduler ticks. - A pre-existing, independently authored daily scheduled workflow also missed its due slot, which rules out one malformed definition or one workflow owner.
- Manual trigger of the target workflow immediately emitted the expected signed
send_messageevent. - A temporary
message_postedworkflow created in the same hosted community automatically matched its input and emitted itssend_messageaction immediately; it was then disabled. - The production daily workflow missed another due slot at 08:00 UTC on 2026-08-17.
The message_posted control is useful because it proves workflow registration/projection, event dispatch, definition parsing, executor, action sink, and channel publication on the affected deployment without using the manual-trigger route. The remaining fault boundary is schedule-specific: the background scan/task, scheduled-only authority/claim path, or deployment infrastructure immediately below it.
Source inspection of the exact relay-v0.2.1 tag confirms crates/buzz-relay/src/main.rs wires WorkflowEngine::run(). Current main also works locally per the earlier comment, so deployed image/commit drift or hosted runtime/schema state remains the leading operational hypothesis; the public NIP-11 semantic version is not enough to distinguish those.
Requested operator checks remain:
- exact deployed image digest/git SHA;
- startup/tick logs for
WorkflowEngine cron loop started,Cron tick, andscheduled-fire claim failed; - existence and recent rows for
scheduled_workflow_fires; - row count/result from the enabled schedule workflow scan.
No private channel IDs, workflow prompts, or user data are included here.
Corroborating on another hosted *.communities.buzz.xyz community, through the 2026-08-20 20:30 UTC slot.
Environment
- Relay NIP-11:
Buzz Relay/ version0.2.1/ softwarehttps://github.com/block/buzz - Buzz Desktop 0.5.17 + bundled
buzzCLI, macOS
Observed
Three trigger.on: schedule workflows were created 2026-08-20 08:24 UTC in one channel, crons 30 20 * * *, 30 2 * * * and 30 7 * * * (UTC).
Over the following 24 hours the executor posted exactly once: 2026-08-20 08:25:23 UTC, 46 seconds after creation, emitting the action for the 30 7 * * * workflow whose slot had passed 55 minutes earlier. That looks like a catch-up on the create path rather than a scheduler tick.
The 30 20 * * * slot at 2026-08-20 20:30 UTC produced nothing. The other two workflows, whose most recent past slots were roughly 6h and 12h before creation, produced no catch-up either - consistent with the create-path catch-up having a short lookback window and the scheduler loop never running at all.
Two details that may help narrow it:
- The one event that was emitted is well formed: kind 9, correct
htag,buzz:workflowtag, and the@Namein the action text correctly resolved to aptag. So the action sink and the mention resolver are fine; only the tick is missing. buzz workflows runsreturns[]with exit 0 for every input, including a workflow UUID that does not exist, so it cannot distinguish "never ran" from "ran but unrecorded" (that is #4478 / #2980 - noting it here only because it removes the obvious diagnostic). Desktop's run-history pane instead showsrelay returned 403 Forbidden. Probing the hosted relay directly, every/apipath returns403 RBAC: access deniedincluding paths that do not exist, while/healthreturns200 ok. The account tested isrole: owneron the channel.
Workaround in use: the same as the original report - host-side OS scheduling posting the same message at the intended local times. That also sidesteps #3858, because the post is then signed by an author the agent's ACP gate accepts.
Another hosted-community reproduction, plus one finding that I think narrows the "deploy lag" hypothesis.
Environment: a hosted *.communities.buzz.xyz community (identifier withheld; happy to share privately with anyone who has access to the hosted fleet). NIP-11 version: 0.2.1. Observed 2026-08-21 UTC.
Same signature as the reports above:
- Manual
buzz workflows trigger→ kind:9 posted within 1s. Executor andsend_messageare fine. interval: "1m"→ 0 fires in 10 minutes.cron: "52 3 * * *"(UTC) andcron: "55 12 * * *"(to cover a JST-interpretation) → 0 fires.buzz workflows runs→[], including for the manual run that demonstrably posted. Agreeing with the comments above that this is #4288 and not a usable signal: the CLI queries kinds 46001-46003, which the relay never emits (crates/buzz-cli/src/commands/workflows.rs:60-64).
Extra variable tested — owner: a second interval: "1m" workflow was created in the same channel under a different owner key (different creator, different member). 0 fires in 7 minutes. Both owners are active members and both pass the same check_owner_authority gate that the manual trigger path also runs (handlers/command_executor.rs, before run creation) — and manual triggers succeed for both. So per-owner authority is ruled out from the outside as well.
Local control: the same scheduler code built locally fires correctly, unattended. interval: "1m" produced 41 consecutive per-minute rows in scheduled_workflow_fires, matching workflow_runs all status=completed, and the corresponding kind:9 events persisted in events — over ~42 minutes with no intervention. Consistent with @colvint's local run.
The part I think is new — deploy lag alone does not explain this.
I diffed the two functions that gate scheduled firing between the newest relay release and current main:
list_all_enabled_workflows(crates/buzz-db/src/workflow.rs)WorkflowEngine::run, the cron loop (crates/buzz-workflow/src/lib.rs)
Both are byte-identical between relay-v0.2.1 (6e5c462ac, 2026-08-08 — the newest relay tag) and main @ 24ec6a468 (2026-08-20).
Since every hosted reporter here sees NIP-11 0.2.1, and that version string was introduced by the relay-v0.2.1 release commit itself, any affected hosted relay is running a build at or after 2026-08-08 — i.e. running the same scheduler code that demonstrably works locally. Upgrading a hosted instance to current main would therefore not change this code path at all. That points away from build age and toward something in the hosted deployments' environment or data.
Three concrete things someone with hosted access could check, in the order I'd try them:
- Is the loop even running?
main.rsspawns it unconditionally after the action sink is wired and it logsWorkflowEngine cron loop started (60s tick)at INFO on startup. If that line is absent, or present but the task died, everything else here is moot. communities.archived_atfor the affected community. The scan joinscommunitiesand filtersc.archived_at IS NULL(added in2b15a7267, 2026-07-14, so it is in 0.2.1). A non-NULL value there makes the scan return zero rows for that tenant — schedule silently stops while every other path, including manual trigger, keeps working. That matches this failure signature exactly.- The
LIMIT 1000cap. The scan isORDER BY w.created_at ASC LIMIT 1000across all communities. On a shared multi-tenant deployment, if there are ≥1000 active enabled schedule workflows fleet-wide, the newest ones are silently dropped from every tick — no warning, no log line. Every reporter here created fresh probes, which is exactly what this would hide. Worth aSELECT count(*)before anything else, and arguably worth a warning log upstream regardless of whether it is the cause here.
Happy to run further probes on the affected instance with whatever conditions would help.
Fourth hosted-relay corroboration, with one measurement that I think discriminates this issue from #6490.
In our community the scheduler has never fired once — not "stopped after uptime", but zero fires across its entire lifetime.
Setup: hosted *.communities.buzz.xyz relay. Five trigger.on: schedule workflows created 2026-08-13, four daily (53 4 * * *, 15 5 * * *, 40 5 * * *, plus one weekly 7 5 * * SAT), owner-authored, enabled.
Measurement on 2026-08-25, paginating the full channel history back to before the workflows existed:
- 1601 unique messages scanned, oldest
2026-08-07T20:00:40Z— i.e. the window fully covers the workflows' lifetime. - 3 events carry the workflow signer pubkey; the same 3 carry the
["buzz:workflow","true"]tag. Two independent markers, same result. - All three are manual
workflows triggercalls I made today at08:55:15Z,09:22:07Z,09:22:07Z. - Expected automatic fires in that window: >50. Actual: 0.
Why this looks different from #6490: there the engine task itself is dead, so manual and webhook runs stay pending too. Here the engine is demonstrably alive at the moment the cron is silent — two manual triggers returned run_ids and their send_message actions landed in-channel within the same second (09:22:07Z). So the executor, the action sink, the run creation and the DB row are all fine; only the time-based scan never selects these rows.
Two side observations from the same session, both consistent with existing reports (#2879 / #5077 and #2980):
workflows triggeris a reliable probe for whether aworkflowsrow actually exists, because it does the DB read before the ownership check: a deleted workflow returnsinvalid: workflow not foundwhileworkflows liststill shows it. That made "delete is a no-op" look true from the CLI when it isn't — the row is gone, only the kind:30620 event lingers.workflows runsreturned[]immediately after a manual run that provably executed.
Happy to run any narrowing probe from the client side; hosted relay logs aren't available to us either.
Fifth hosted-relay corroboration, as of 2026-09-02 — still NIP-11 0.2.1, eight days after the most recent report here. The part I think is new is a client-side way to attribute a fire, which turns "we saw nothing" into a measured zero.
Measurement
A trigger.on: schedule / cron: "*/5 * * * *" workflow was created 2026-09-01T19:40:52Z on a hosted *.communities.buzz.xyz community, enabled, owner an active channel member.
Scanning the destination channel's complete event history from workflow creation to 2026-09-02T13:02:43Z (17h 21m — 32 events, the whole channel, not a sample):
events carrying ["buzz:workflow","true"] |
1, at 2026-09-01T19:41:01Z |
| that fire's matching manual trigger | kind:46020 at 2026-09-01T19:41:00Z, d tag = the same workflow UUID |
| fires not attributable to a manual trigger | 0 |
expected */5 slots in the window |
208 |
The one fire is a manual workflows trigger, one second after the request. Nothing else ever fired.
How to attribute a fire without relay logs
Two facts make this checkable from the client. I have not seen either written down in this thread, and together they answer "how do I even tell a natural fire from a manual one" now that workflows runs is useless (#4288):
- Workflow actions are relay-signed, and the signing key is published.
workflow_sink.rsbuilds the kind:9 withbuzz:workflowand signs it with the relay keypair; the relay's own NIP-11 document exposes that key in itsselffield. I verified the emitted event'spubkeyequalsselfbyte-for-byte. Sopubkey == nip11.self && tags contains ["buzz:workflow","true"]is an exact fire filter that needs no privileged access — it makes @oletillmann's "3 events carry the workflow signer pubkey" reproducible by anyone on their own community. - Manual triggers are separately visible.
buzz workflows triggersubmits a kind:46020 carrying the workflow UUID in itsdtag, and that event is queryable from the client. Pairing each fire to a 46020 a second or two earlier subtracts manual runs from the count.
A scheduled fire and a manual run are separate runs, so a tick that had also fired the 19:40:00Z slot would have produced a second workflow-tagged event. There is exactly one, and it is spoken for.
What this deployment does and does not narrow
- No create-path catch-up here. In
relay-v0.2.1(6e5c462a)handle_workflow_defupserts and then only callsinvalidate_channel_workflows; there is no schedule evaluation on the create path, which matches the observation. Worth flagging for @sian72's 2026-08-20 08:25:23Z event: it fired a slot 55 minutes in the past, andcron_fire_instantonly matches a slot from a tick landing inside[slot, slot+60s), so on 0.2.1 code that event is explained by neither the create path nor the cron window. If that reading is right, it is a third emit path and probably its own question. - The useful negative: no evidence the scheduler scan ever selected this row — not once in 208 slots — while manual triggering of the same row succeeds in one second. Executor, action sink, mention resolution, channel write and owner authority are all fine on this deployment.
- Our probe is by construction the newest schedule row in the fleet, which is exactly what @yamkz's third hypothesis (
ORDER BY w.created_at ASC LIMIT 1000inlist_all_enabled_workflows,LIST_MAX_LIMIT = 1000) predicts would be starved silently. I cannot see the fleet count from outside; that still needs an operatorSELECT count(*).
One triage note
Both candidate fixes are stalled, and neither is linked from this issue — the Development panel here still reads "No branches or pull requests":
- #5092 (Fix workflow scheduler pagination) replaces the capped scan with keyset pagination on
(created_at, community_id, id)plus a partial index — i.e. precisely @yamkz's hypothesis 3. It is still a draft,mergeable: false/dirty, no reviewer assigned, untouched since 2026-08-19. - #3884 (tolerate delayed cron ticks) is mergeable but blocked.
Is #5092 the intended fix for this issue, and can it be linked here? I have an independently written patch for the same starvation path (keyset pagination on the same tuple, fail-closed interval-anchor pruning when a scan is partial, additive migration + scan index, engine-bound 1001-row regression) and would rather help finish #5092 than open a competing PR — happy to do whichever its author and the maintainers prefer.
No private channel identifiers, workflow contents, pubkeys or user data are included here. Happy to share the workflow/channel IDs and the raw event set privately with anyone who has hosted-fleet access.
Buzz Desktop desktop-v0.5.23 (latest desktop tag in the repo; installed 2026-09-05), buzz CLI buzz.exe dated 2026-09-05 (no version string; buzz --version is not a valid argument). Relay: a Buzz-hosted community relay (*.communities.buzz.xyz), not self-hosted. OS: Windows 11 Pro 10.0.26200, Hyper-V VM; agents run via buzz-acp with the Claude runtime.
Same behaviour here, measured on 0.5.23:
Two workflows in one channel, trigger: {on: schedule, cron: "44 6 * * 1-5"} and cron: "49 6 * * 1", single step action: send_message posting an at-mention into the same channel. Both had enabled: true from 2026-09-15 to 2026-09-17.
Expected: a message in the channel at 06:44 UTC on 2026-09-16 and 2026-09-17.
Observed: no message at all in the channel after 2026-09-15 (buzz messages get --channel