Skip to content

Commit 9b466cf

Browse files
committed
clean up
1 parent b69a760 commit 9b466cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

openeo/extra/job_management/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,7 @@ def _job_update_loop(self, job_db: JobDatabaseInterface, start_job: Callable[[],
517517

518518
with ignore_connection_errors(context="get statuses"):
519519
self._track_statuses(job_db, stats=stats)
520-
with self._stats_lock:
521-
stats["track_statuses"] += 1
520+
stats["track_statuses"] += 1
522521

523522
self._launch_pending_jobs(job_db, start_job, stats)
524523
self._handle_completed_jobs(stats)
@@ -529,8 +528,7 @@ def _launch_pending_jobs(self, job_db, start_job, stats):
529528
not_started = job_db.get_by_status(statuses=["not_started"], max=200).copy()
530529
if not not_started.empty:
531530
running = job_db.get_by_status(statuses=["created", "queued", "running"])
532-
with self._stats_lock:
533-
stats["job_db get_by_status"] += 1
531+
stats["job_db get_by_status"] += 1
534532

535533
per_backend = running.groupby("backend_name").size().to_dict()
536534
_log.info(f"Running per backend: {per_backend}")

0 commit comments

Comments
 (0)