Skip to content

Retry loading transfer schedules when the conductor is not ready - #537

Open
fabi200123 wants to merge 1 commit into
cloudbase:mainfrom
fabi200123:fix-scheduler
Open

fabi200123 wants to merge 1 commit into
cloudbase:mainfrom
fabi200123:fix-scheduler

Conversation

@fabi200123

Copy link
Copy Markdown
Contributor

The cron loop starts from an os.register_at_fork after_in_child callback. CPython ignores exceptions raised there, so a MessagingTimeout while the conductor was still starting left transfer-cron running with the schedule loop never started and no retry.

Load schedules from a background thread instead. On failure, retry every 60 seconds until the conductor responds.

The cron loop starts from an os.register_at_fork after_in_child callback.
CPython ignores exceptions raised there, so a MessagingTimeout while the
conductor was still starting left transfer-cron running with the schedule
loop never started and no retry.

Load schedules from a background thread instead. On failure, retry every
60 seconds until the conductor responds.
@fabi200123
fabi200123 marked this pull request as ready for review October 1, 2026 12: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.

2 participants