Skip to content

Changes to job manager queue limit and queued_for_start#873

Open
VictorVerhaert wants to merge 3 commits intomasterfrom
small-jm-fixes
Open

Changes to job manager queue limit and queued_for_start#873
VictorVerhaert wants to merge 3 commits intomasterfrom
small-jm-fixes

Conversation

@VictorVerhaert
Copy link
Contributor

@VictorVerhaert VictorVerhaert commented Mar 23, 2026

pr this refers to: #872

@VictorVerhaert VictorVerhaert requested a review from soxofaan March 23, 2026 08:58
@soxofaan
Copy link
Member

can you link to the tickets/PRs that provide more context about these changes?

@VictorVerhaert VictorVerhaert requested a review from HansVRP March 23, 2026 09:01
@VictorVerhaert
Copy link
Contributor Author

pr: #872

@HansVRP
Copy link
Contributor

HansVRP commented Mar 23, 2026

can you link those in the changelog?

@HansVRP
Copy link
Contributor

HansVRP commented Mar 23, 2026

or is that a no go?

@VictorVerhaert
Copy link
Contributor Author

There was no issue created for this behavior so nothing to link, but rather a bug found last week and this fix solved it for me.

@soxofaan
Copy link
Member

I'm a bit confused by the introduced change to be honest #872 (review)

@VictorVerhaert VictorVerhaert changed the title added changelog for previous pr Changes to job manager queue limit and queued_for_start Mar 23, 2026
f"Status of job {job_id!r} (on backend {backend_name}) is {new_status!r} (previously {previous_status!r})"
)

if new_status == "created" and previous_status == "queued_for_start":
Copy link
Member

Choose a reason for hiding this comment

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

I would even put this immediately after new_status = job_metadata["status"], because now the logging will be inconsistent with the real value of the new_status value

or you could add a _log.warning that you are overruling the status here

@@ -548,7 +548,7 @@ def _job_update_loop(
# TODO: should "created" be included in here? Calling this "running" is quite misleading then.
# apparently (see #839/#840) this seemingly simple change makes a lot of MultiBackendJobManager tests flaky
running = job_db.get_by_status(statuses=["created", "queued", "queued_for_start", "running"])
Copy link
Contributor

Choose a reason for hiding this comment

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

from discussion with @VictorVerhaert; perhaps we can remove created here now as we later on fix the state

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