Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow scheduling jobs in the future #3558

Open
wants to merge 1 commit into
base: quenting/new-queue/jobs
Choose a base branch
from

Conversation

sandhose
Copy link
Member

On top of #3455

This adds a way to schedule a job to run at a specific time.
It also tweaks the retry logic to use this new feature and retry with an exponential backoff.

Also retries jobs with an exponential backoff.
@sandhose sandhose added the A-Jobs Related to asynchronous jobs label Nov 22, 2024
Copy link

cloudflare-workers-and-pages bot commented Nov 22, 2024

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 016ada0
Status: ✅  Deploy successful!
Preview URL: https://e412e44d.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-new-queue-scheduled.matrix-authentication-service-docs.pages.dev

View logs

Copy link
Contributor

@reivilibre reivilibre left a comment

Choose a reason for hiding this comment

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

sgtm

Comment on lines +534 to +535
1 => tracing::warn!("One scheduled job marked as available"),
n => tracing::warn!("{n} scheduled jobs marked as available"),
Copy link
Contributor

Choose a reason for hiding this comment

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

surprised by warn.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, that's probably a copy-paste failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Jobs Related to asynchronous jobs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants