Parcourir la source

[oozie] Avoid a noisy exception in the logs

Romain Rigaux il y a 10 ans
Parent
commit
8d65a75cc7
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      apps/oozie/src/oozie/views/dashboard.py

+ 2 - 1
apps/oozie/src/oozie/views/dashboard.py

@@ -389,7 +389,8 @@ def list_oozie_coordinator(request, job_id):
   # Cross reference the submission history (if any)
   coordinator = get_history().get_coordinator_from_config(oozie_coordinator.conf_dict)
   try:
-    coordinator = get_history().objects.get(oozie_job_id=job_id).job.get_full_node()
+    if not ENABLE_V2.get():
+      coordinator = get_history().objects.get(oozie_job_id=job_id).job.get_full_node()
   except:
     LOG.exception("Ignoring error getting oozie job coordinator for job_id=%s", job_id)