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

Schedule jobs in priority order #451

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Dec 12, 2024

What

Sort jobs by priority (descending) before sending them through to be scheduled. Highest priority jobs should be scheduled first, lowest priority jobs scheduled last.

Why

Fixes #445

Notes

The graphQL queries remove scheduledAt (since it stopped being used with #427) and adds priority. My text editor also reformatted the GraphQL. The integration tests also hit a nil panic (these are sometimes flaky), so I have fixed the two instances of that particular path.

@DrJosh9000 DrJosh9000 changed the title Prefer higher priority jobs Schedule jobs in priority order Dec 12, 2024
@DrJosh9000 DrJosh9000 force-pushed the higher-priority-jobs-first branch from 699883e to 822be68 Compare December 12, 2024 05:30
@DrJosh9000 DrJosh9000 marked this pull request as ready for review December 12, 2024 05:32
@DrJosh9000 DrJosh9000 force-pushed the higher-priority-jobs-first branch from 822be68 to 2c634b8 Compare December 16, 2024 05:40
Copy link
Contributor

@wolfeidau wolfeidau left a comment

Choose a reason for hiding this comment

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

👍🏻 NICE 🚀

@DrJosh9000 DrJosh9000 merged commit 9dc59c3 into main Dec 16, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the higher-priority-jobs-first branch December 16, 2024 22:46
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.

Feature request: support Buildkite "Job prioritization"
2 participants