Skip to content

fix: increase cron misfire grace time to 300 seconds - #10183

Open
Soulter wants to merge 1 commit into
masterfrom
codex/cron-misfire-grace-300
Open

Soulter wants to merge 1 commit into
masterfrom
codex/cron-misfire-grace-300

Conversation

@Soulter

@Soulter Soulter commented Sep 21, 2026

Copy link
Copy Markdown
Member

Increase the cron scheduler's misfire grace time from 30 to 300 seconds so jobs delayed by up to five minutes can still run. This controls how late a scheduled job may start; it does not change execution timeouts or add a configuration option.

Related to #10160.

Validation: ruff format . (513 files unchanged), ruff check ., and git diff --check passed.

Summary by Sourcery

Bug Fixes:

  • Allow cron jobs delayed by up to five minutes to run by increasing the scheduler misfire grace period from 30 to 300 seconds.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 21, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
astrbot-docs b9e5891 Commit Preview URL

Branch Preview URL
Sep 21 2026, 03:55 PM

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. This changes the scheduling policy for every cron job, allowing jobs delayed by up to five minutes to run instead of being skipped. If that behavior is wrong, a job may already have performed an external side effect before reverting restores the previous grace period.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

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