Skip to content

Commit

Permalink
[fix] Handle ApiException as warning not error
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Dec 11, 2023
1 parent 9210b2f commit fc4c811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collect_coordinator/job_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ async def __watch_jobs_continuously(self) -> None:
try:
await self.__reconcile()
await self.__watch_jobs()
except ApiException as ex:
log.warning(f"Error while watching jobs: status={ex.status}, reason={ex.reason}. Ignore.")
except Exception as ex:
log.exception(f"Error while watching jobs: {ex}")

Expand Down

0 comments on commit fc4c811

Please sign in to comment.