Skip to content

Commit

Permalink
only create if jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevc committed Jul 25, 2024
1 parent 7355cea commit 63e6468
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions snakemake_executor_plugin_azure_batch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,11 @@ def __post_init__(self):
"resource and client ids to be set."
)

self.init_batch_client()
self.create_batch_pool()
self.create_batch_job()
# only setup resources if there is something to do
if len(self.dag):
self.init_batch_client()
self.create_batch_pool()
self.create_batch_job()

def init_batch_client(self):
"""
Expand Down

0 comments on commit 63e6468

Please sign in to comment.