Skip to content

Commit 368c03a

Browse files
committed
rollback
1 parent a7fb9cd commit 368c03a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

openeo/extra/job_management/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def _launch_pending_jobs(self, job_db: JobDatabaseInterface, start_job: Callable
542542
jobs_to_add = self._get_jobs_to_launch(not_started, per_backend)
543543
self._run_job_threads(jobs_to_add, start_job, not_started, stats, job_db)
544544

545-
def _get_jobs_to_launch(self, not_started: pd.DataFrame, per_backend: dict) -> List[Tuple[int, str]]:
545+
def _get_jobs_to_launch(self, not_started: pd.DataFrame, per_backend: Dict[str, int]) -> List[Tuple[int, str]]:
546546
"""Determines which jobs to launch based on backend availability."""
547547
jobs_to_add = []
548548
total_added = 0
@@ -579,10 +579,8 @@ def job_worker():
579579
while not job_queue.empty():
580580
i, backend_name = job_queue.get()
581581
try:
582-
# Pass a copy of the row to avoid race conditions
583-
job_row = not_started.loc[i].copy()
584-
self._launch_job(start_job, job_row, backend_name, stats)
585-
582+
# Process job
583+
self._launch_job(start_job, not_started, i, backend_name, stats)
586584
stats["job launch"] += 1
587585

588586
with self._db_lock:

0 commit comments

Comments
 (0)