File tree Expand file tree Collapse file tree
plugins/nf-azure/src/main/nextflow/cloud/azure/batch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,17 +97,19 @@ class AzBatchExecutor extends Executor implements ExtensionPoint {
9797 }
9898 }
9999
100- protected void initBatchService () {
100+ protected void initConfig () {
101101 config = AzConfig . getConfig(session)
102- batchService = new AzBatchService (this )
103102
104103 // Generate an account SAS token using either activeDirectory configs or storage account keys
105104 if (! config. storage(). sasToken) {
106105 config. storage(). sasToken = config. activeDirectory(). isConfigured() || config. managedIdentity(). isConfigured()
107106 ? AzHelper . generateContainerSasWithActiveDirectory(workDir, config. storage(). tokenDuration)
108107 : AzHelper . generateAccountSasWithAccountKey(workDir, config. storage(). tokenDuration)
109108 }
109+ }
110110
111+ protected void initBatchService () {
112+ batchService = new AzBatchService (this )
111113 Global . onCleanup((it) -> batchService. close())
112114 }
113115
@@ -117,6 +119,7 @@ class AzBatchExecutor extends Executor implements ExtensionPoint {
117119 @Override
118120 protected void register () {
119121 super . register()
122+ initConfig()
120123 initBatchService()
121124 validateWorkDir()
122125 validatePathDir()
You can’t perform that action at this time.
0 commit comments