Skip to content

Fix #58: CronTask silently dies on exception, killing backup permanently#61

Merged
max-tet merged 1 commit intomainfrom
clayde/issue-58-cron-exception-handling
Apr 14, 2026
Merged

Fix #58: CronTask silently dies on exception, killing backup permanently#61
max-tet merged 1 commit intomainfrom
clayde/issue-58-cron-exception-handling

Conversation

@ClaydeCode
Copy link
Copy Markdown
Contributor

Closes #58

Wrapped await self.func() in CronTask._run_cron with a try/except Exception block that logs at ERROR level and continues the loop, matching the existing pattern in PeriodicTask._run_delay. Also added a test test_cron_continues_after_exception verifying the task keeps running after a function raises.

…ilent death on exception

Mirrors the existing exception handling pattern in PeriodicTask._run_delay: log at
ERROR level and continue the loop so the cron task keeps firing on future scheduled
times instead of silently dying.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ClaydeCode ClaydeCode requested a review from max-tet April 14, 2026 07:50
@max-tet max-tet merged commit b797f66 into main Apr 14, 2026
6 checks passed
@max-tet max-tet deleted the clayde/issue-58-cron-exception-handling branch April 14, 2026 08:10
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.

CronTask silently dies on exception, killing backup permanently

2 participants