From 2a962b6f001606c2dee094e82b9904eeb914bbd1 Mon Sep 17 00:00:00 2001
From: chausman <chausman@nrao.edu>
Date: Tue, 12 Sep 2023 09:58:21 -0600
Subject: [PATCH] don't send QA messaging for observation ingestions

---
 .../workspaces/workspaces/workflow/services/workflow_service.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/workspaces/workspaces/workflow/services/workflow_service.py b/shared/workspaces/workspaces/workflow/services/workflow_service.py
index d074e8b0e..c9345f8b2 100644
--- a/shared/workspaces/workspaces/workflow/services/workflow_service.py
+++ b/shared/workspaces/workspaces/workflow/services/workflow_service.py
@@ -867,7 +867,7 @@ class WorkflowMessageHandler:
         wf_req_id = subject["workflow_request_id"]
         wf_request = self.info.lookup_workflow_request(wf_req_id)
 
-        if "ingest" in wf_request.workflow_name:
+        if "ingest" in wf_request.workflow_name and "obs" not in wf_request.workflow_name:
             if "seci" not in wf_request.workflow_name:
                 subject["execution_wf_id"] = wf_request.argument["parent_wf_request_id"]
                 logger.debug("Sending ingestion failed message!")
-- 
GitLab