Skip to content

Commit

Permalink
job_manager: replace print in exc handler with warning
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Nov 12, 2024
1 parent 9eabc7a commit 202408b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openeo/extra/job_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,9 @@ def _track_statuses(self, job_db: JobDatabaseInterface, stats: Optional[dict] =
active.loc[i, key] = _format_usage_stat(job_metadata, key)

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

stats["job_db persist"] += 1
job_db.persist(active)
Expand Down

0 comments on commit 202408b

Please sign in to comment.