File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
plugins/nf-azure/src/main/nextflow/cloud/azure/batch Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -97,17 +97,19 @@ class AzBatchExecutor extends Executor implements ExtensionPoint {
97
97
}
98
98
}
99
99
100
- protected void initBatchService () {
100
+ protected void initConfig () {
101
101
config = AzConfig . getConfig(session)
102
- batchService = new AzBatchService (this )
103
102
104
103
// Generate an account SAS token using either activeDirectory configs or storage account keys
105
104
if (! config. storage(). sasToken) {
106
105
config. storage(). sasToken = config. activeDirectory(). isConfigured() || config. managedIdentity(). isConfigured()
107
106
? AzHelper . generateContainerSasWithActiveDirectory(workDir, config. storage(). tokenDuration)
108
107
: AzHelper . generateAccountSasWithAccountKey(workDir, config. storage(). tokenDuration)
109
108
}
109
+ }
110
110
111
+ protected void initBatchService () {
112
+ batchService = new AzBatchService (this )
111
113
Global . onCleanup((it) -> batchService. close())
112
114
}
113
115
@@ -117,6 +119,7 @@ class AzBatchExecutor extends Executor implements ExtensionPoint {
117
119
@Override
118
120
protected void register () {
119
121
super . register()
122
+ initConfig()
120
123
initBatchService()
121
124
validateWorkDir()
122
125
validatePathDir()
You can’t perform that action at this time.
0 commit comments