Skip to content

Commit e18c820

Browse files
soxofaanHansVRP
authored andcommitted
Revert 706faf and 3d3ca1 for #839/#840
1 parent 5d22482 commit e18c820

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
@@ -553,7 +553,9 @@ def _job_update_loop(
553553
not_started = job_db.get_by_status(statuses=["not_started"], max=200).copy()
554554
if len(not_started) > 0:
555555
# Check number of jobs running at each backend
556-
running = job_db.get_by_status(statuses=["queued", "queued_for_start", "running"])
556+
# TODO: should "created" be included in here? Calling this "running" is quite misleading then.
557+
# apparently (see #839/#840) this seemingly simple change makes a lot of MultiBackendJobManager tests flaky
558+
running = job_db.get_by_status(statuses=["created", "queued", "queued_for_start", "running"])
557559
stats["job_db get_by_status"] += 1
558560
per_backend = running.groupby("backend_name").size().to_dict()
559561
_log.info(f"Running per backend: {per_backend}")

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)