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

When scheduling, also consider task age to sort requested tasks #999

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

benoit74
Copy link
Collaborator

Rationale

Fix #946

Changes

  • Also consider task age (based on updated_at which is a "proxy") when sorting requested tasks, so that older tasks are ran first

@benoit74 benoit74 self-assigned this Jul 22, 2024
@benoit74 benoit74 marked this pull request as ready for review July 22, 2024 09:37
@benoit74 benoit74 requested a review from rgaudin July 22, 2024 09:37
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.14%. Comparing base (27208b2) to head (36e07db).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #999   +/-   ##
=======================================
  Coverage   88.14%   88.14%           
=======================================
  Files          94       94           
  Lines        5312     5312           
=======================================
  Hits         4682     4682           
  Misses        630      630           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benoit74
Copy link
Collaborator Author

I will merge this right away, it is too important for zimit, I completely forgot about this bug since weeks ...

@rgaudin feedback is still welcomed of course.

@benoit74 benoit74 merged commit 9ad012b into main Jul 22, 2024
7 checks passed
@benoit74 benoit74 deleted the scheduling_prio branch July 22, 2024 09:38
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.

Task scheduling should also take into account requested task "age"
1 participant