Skip to content

small fixes to status management in JobManager#872

Merged
HansVRP merged 1 commit intomasterfrom
small-jm-fixes
Mar 23, 2026
Merged

small fixes to status management in JobManager#872
HansVRP merged 1 commit intomasterfrom
small-jm-fixes

Conversation

@VictorVerhaert
Copy link
Contributor

PRevents overwriting local status queued_for_start with backend status created

Takes account of the jobs in created and queued_for_start for the queue limit on a backend

@VictorVerhaert
Copy link
Contributor Author

scaling up before:
image

scaling up after
image

@VictorVerhaert VictorVerhaert requested a review from HansVRP March 23, 2026 08:29
@HansVRP HansVRP merged commit 8f913a1 into master Mar 23, 2026
18 of 19 checks passed
@soxofaan soxofaan deleted the small-jm-fixes branch March 23, 2026 08:57
@VictorVerhaert VictorVerhaert restored the small-jm-fixes branch March 23, 2026 08:57
queued = running[running["status"] == "queued"]
queued = running[
running["status"] != "running"
] # The queue limit is for non-running jobs, so we need to exclude running jobs from the queued count
Copy link
Member

Choose a reason for hiding this comment

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

isn't the queue limit about queued jobs?

with this change "created" jobs will also be counted as "queued" which makes no sense to me.
Or even worse: "finished" and "error" jobs will also count as "queued" here

@VictorVerhaert
Copy link
Contributor Author

PR has been reverted and will be taken up in #873

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.

3 participants