From d529775dd5e570425ca266ac4b5ec3867f4377f5 Mon Sep 17 00:00:00 2001 From: dachengx Date: Sat, 7 Sep 2024 13:26:59 -0500 Subject: [PATCH] No need to plan or submit workflow if no job added --- alea/submitters/htcondor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alea/submitters/htcondor.py b/alea/submitters/htcondor.py index d46a421..3efb1f0 100644 --- a/alea/submitters/htcondor.py +++ b/alea/submitters/htcondor.py @@ -723,7 +723,8 @@ def submit(self, **kwargs): self._make_template_tarball() self._generate_workflow() - self._plan_and_submit() + if len(self.wf.jobs): + self._plan_and_submit() if self.debug: self.wf.graph( output=os.path.join(self.outputs_dir, "workflow_graph.dot"), label="xform-id"