mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-27 10:35:58 +00:00
fix(ingest): add error handling (#11905)
This commit is contained in:
parent
524ef8c6d0
commit
05d362a94e
@ -401,7 +401,10 @@ class DataProcessCleanup:
|
||||
total_runs=job.get("entity").get("runs").get("total"),
|
||||
)
|
||||
if datajob_entity.total_runs > 0:
|
||||
self.delete_dpi_from_datajobs(datajob_entity)
|
||||
try:
|
||||
self.delete_dpi_from_datajobs(datajob_entity)
|
||||
except Exception as e:
|
||||
logger.error(f"While trying to delete {datajob_entity} got {e}")
|
||||
if (
|
||||
datajob_entity.total_runs == 0
|
||||
and self.config.delete_empty_data_jobs
|
||||
|
Loading…
x
Reference in New Issue
Block a user