diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index 788a910c49fbf6b842795d2c661b7fac200cfa2e..401e00ac8c9f26e555bbc6efc7840db8ce8739e0 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -1504,6 +1504,9 @@ process outputBag {
   output:
     path ("${repRID}_Output_Bag.zip") into outputBag
 
+  when:
+    upload
+
   script:
   """
   hostname > ${repRID}.outputBag.log