Skip to content

Commit 202408b

Browse files
committed
job_manager: replace print in exc handler with warning
1 parent 9eabc7a commit 202408b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openeo/extra/job_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,9 @@ def _track_statuses(self, job_db: JobDatabaseInterface, stats: Optional[dict] =
710710
active.loc[i, key] = _format_usage_stat(job_metadata, key)
711711

712712
except OpenEoApiError as e:
713+
# TODO: inspect status code and e.g. differentiate between 4xx/5xx
713714
stats["job tracking error"] += 1
714-
print(f"error for job {job_id!r} on backend {backend_name}")
715-
print(e)
715+
_log.warning(f"Error while tracking status of job {job_id!r} on backend {backend_name}: {e!r}")
716716

717717
stats["job_db persist"] += 1
718718
job_db.persist(active)

0 commit comments

Comments
 (0)