Skip to content

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Oct 14, 2025

While testing the new system on the x64 collector, I ran into some panics caused by missing API keys that I did not configure. I realized that in the case of panic, the cron job would stop, but the website would happily chug along. That's not really ideal.

The rustc-perf codebase uses unwraps and panics on a bunch of places, and thus panics can sometime happen, e.g. from transient network or DB errors. This PR thus pre-emptively guards against the panics by restarting the job queue handler cron job when it panics.

Special care is taken to avoid a "panic loop", where we would restart the task and it would immediately panic again.

@Kobzol Kobzol requested a review from Jamesbarford October 20, 2025 12:35
Copy link
Contributor

@Jamesbarford Jamesbarford left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Kobzol Kobzol added this pull request to the merge queue Oct 20, 2025
Merged via the queue into rust-lang:master with commit 8109f94 Oct 20, 2025
14 checks passed
@Kobzol Kobzol deleted the job-queue-panic branch October 20, 2025 14:15
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