Skip to content

Commit 8929d48

Browse files
committed
Merge remote-tracking branch 'origin/master' into issue838_enforece_limited_queue
2 parents f01ab48 + 945259e commit 8929d48

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
- Internal reorganization of `openeo.extra.job_management` submodule to ease future development ([#741](https://github.com/Open-EO/openeo-python-client/issues/741))
1818
- `openeo.Connection`: add some more HTTP error codes to the default retry list: `502 Bad Gateway`, `503 Service Unavailable` and `504 Gateway Timeout` ([#835](https://github.com/Open-EO/openeo-python-client/issues/835))
19-
- `MultiBackendJobManager`: don't count "created" jobs as "running"
2019

2120
### Removed
2221

openeo/extra/job_management/_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,9 @@ def _job_update_loop(
545545
not_started = job_db.get_by_status(statuses=["not_started"], max=200).copy()
546546
if len(not_started) > 0:
547547
# Check number of jobs queued/running at each backend
548-
running = job_db.get_by_status(statuses=["queued", "queued_for_start", "running"])
548+
# TODO: should "created" be included in here? Calling this "running" is quite misleading then.
549+
# apparently (see #839/#840) this seemingly simple change makes a lot of MultiBackendJobManager tests flaky
550+
running = job_db.get_by_status(statuses=["created", "queued", "queued_for_start", "running"])
549551
queued = running[running["status"] == "queued"]
550552
running_per_backend = running.groupby("backend_name").size().to_dict()
551553
queued_per_backend = queued.groupby("backend_name").size().to_dict()

tests/extra/job_management/test_manager.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,7 @@ def test_start_job_thread_basic(self, tmp_path, job_manager, job_manager_root_di
281281
("job-2019", "finished", "foo", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
282282
("job-2020", "finished", "bar", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
283283
("job-2021", "finished", "bar", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
284-
(
285-
"job-2022",
286-
"finished",
287-
dirty_equals.IsOneOf("foo", "bar"),
288-
"1234.5 cpu-seconds",
289-
"34567.89 mb-seconds",
290-
"2345 seconds",
291-
123,
292-
),
284+
("job-2022", "finished", "foo", "1234.5 cpu-seconds", "34567.89 mb-seconds", "2345 seconds", 123),
293285
]
294286

295287
# Check downloaded results and metadata.

0 commit comments

Comments
 (0)