mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-28 11:05:50 +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"),
|
total_runs=job.get("entity").get("runs").get("total"),
|
||||||
)
|
)
|
||||||
if datajob_entity.total_runs > 0:
|
if datajob_entity.total_runs > 0:
|
||||||
|
try:
|
||||||
self.delete_dpi_from_datajobs(datajob_entity)
|
self.delete_dpi_from_datajobs(datajob_entity)
|
||||||
|
except Exception as e:
|
||||||
|
logger.error(f"While trying to delete {datajob_entity} got {e}")
|
||||||
if (
|
if (
|
||||||
datajob_entity.total_runs == 0
|
datajob_entity.total_runs == 0
|
||||||
and self.config.delete_empty_data_jobs
|
and self.config.delete_empty_data_jobs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user