From 413e1ce613c61af6798f546c5d6f8767e05a4dc1 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Thu, 14 Jan 2021 12:24:44 -0600
Subject: [PATCH] Output execution run rid to tracking for fail and failPre
 Execution

---
 workflow/rna-seq.nf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index 2467b11..c36c84c 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -2249,6 +2249,7 @@ process failPreExecutionRun_fastq {
   curl -H 'Content-Type: application/json' -X PUT -d \
     '{ \
       "ID": "${workflow.sessionId}", \
+      "ExecutionRunRID": "'\${rid}'", \
       "Failure": "'\${dt}'" \
     }' \
     "https://9ouc12dkwb.execute-api.us-east-2.amazonaws.com/prod/db/track"
@@ -2330,6 +2331,7 @@ process failPreExecutionRun_species {
   curl -H 'Content-Type: application/json' -X PUT -d \
     '{ \
       "ID": "${workflow.sessionId}", \
+      "ExecutionRunRID": "'\${rid}'", \
       "Failure": "'\${dt}'" \
     }' \
     "https://9ouc12dkwb.execute-api.us-east-2.amazonaws.com/prod/db/track"
@@ -2421,6 +2423,7 @@ process failExecutionRun {
   curl -H 'Content-Type: application/json' -X PUT -d \
     '{ \
       "ID": "${workflow.sessionId}", \
+      "ExecutionRunRID": "'\${rid}'", \
       "Failure": "'\${dt}'" \
     }' \
     "https://9ouc12dkwb.execute-api.us-east-2.amazonaws.com/prod/db/track"
-- 
GitLab