Skip to content

fix: Prefect schedules stay active across runner redeploys - #408

Merged
ohld merged 2 commits into
productionfrom
fix/serve-no-pause
Nov 27, 2026
Merged

ohld merged 2 commits into
productionfrom
fix/serve-no-pause

Conversation

@ohld

@ohld ohld commented Nov 27, 2026

Copy link
Copy Markdown
Member

serve() pauses all deployments when the process stops (pause_on_shutdown=True by default). Coolify starts the new runner first and stops the old one afterwards, so the old process paused the schedules the new one had just registered. On 2026-11-27 no flow ran 10:18–10:33 UTC until the deployments were resumed by hand.

Also: ServerAliveInterval=30 for the analyst tunnel, which dropped after an idle timeout.

The deploy of this PR still stops an old runner with the old code, so the deployments need one more manual resume afterwards.

🤖 Generated with Claude Code

ohld and others added 2 commits November 27, 2026 07:33
serve() pauses every deployment on shutdown by default. Coolify stops the
old runner after the new one has registered, so each deploy paused all
schedules (no flow ran 10:18-10:33 UTC on 2026-11-27).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ohld
ohld merged commit aa40391 into production Nov 27, 2026
2 checks passed
@ohld
ohld deleted the fix/serve-no-pause branch November 27, 2026 10:42
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