Skip to content

Keep the cron on the acceptance deployment - #48

Merged
davidtorcivia merged 1 commit into
mainfrom
acceptance-keeps-the-cron
Aug 4, 2026
Merged

davidtorcivia merged 1 commit into
mainfrom
acceptance-keeps-the-cron

Conversation

@davidtorcivia

Copy link
Copy Markdown
Contributor

Run 14 timed out waiting for a watermarked rendition even after #46 wired the sweeps into the scheduled handler. The reason is in this generator:

delete config.triggers;

I removed the cron so a throwaway Worker would not fire every minute until the delete landed. But the scheduled handler is what runs the sweeps, and the sweeps are what queue a watermark, backfill a still ladder and bury an abandoned job.

So the acceptance run was deploying a Worker that could never do any of those things, and then failing because it didn't. My own optimisation made the test unrepresentative of production, and I then spent a run testing against it.

A run lives about fifteen minutes, so keeping the cron costs roughly fifteen invocations of a handler that is deleted afterwards.

Worth noting the sweep work in #46 is still correct and still needed — it just could not have been observed through this harness.

Run 14 timed out waiting for a watermarked rendition even after the sweeps
were wired into the scheduled handler, because this generator deletes the cron
that calls it.

It was deleted to stop a throwaway Worker firing every minute until the delete
landed. That was the wrong trade: the scheduled handler is what queues a
watermark, backfills a still ladder and buries an abandoned job, so removing
it made the acceptance run test a deployment that could never do any of those
things. The run then failed for a reason a real deployment would not have had,
and the sweep fix could not have helped.

A run lives about fifteen minutes, so this costs about fifteen invocations.
@davidtorcivia
davidtorcivia merged commit c8ca125 into main Aug 4, 2026
10 checks passed
@davidtorcivia
davidtorcivia deleted the acceptance-keeps-the-cron branch August 4, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant