Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
HansVRP committed Feb 3, 2025
1 parent b69a760 commit 9b466cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions openeo/extra/job_management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,7 @@ def _job_update_loop(self, job_db: JobDatabaseInterface, start_job: Callable[[],

with ignore_connection_errors(context="get statuses"):
self._track_statuses(job_db, stats=stats)
with self._stats_lock:
stats["track_statuses"] += 1
stats["track_statuses"] += 1

self._launch_pending_jobs(job_db, start_job, stats)
self._handle_completed_jobs(stats)
Expand All @@ -529,8 +528,7 @@ def _launch_pending_jobs(self, job_db, start_job, stats):
not_started = job_db.get_by_status(statuses=["not_started"], max=200).copy()
if not not_started.empty:
running = job_db.get_by_status(statuses=["created", "queued", "running"])
with self._stats_lock:
stats["job_db get_by_status"] += 1
stats["job_db get_by_status"] += 1

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

0 comments on commit 9b466cf

Please sign in to comment.