File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
plugins/nf-azure/src/main/nextflow/cloud/azure/batch Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ class AzBatchService implements Closeable {
393
393
394
394
final container = task. getContainer()
395
395
if ( ! container )
396
- throw new IllegalArgumentException ( " Missing container image for process: $task . name " )
396
+ log . warn " Missing container image for process: $task . name "
397
397
final taskId = " nf-${ task.hash.toString()} "
398
398
// get the pool config
399
399
final pool = getPoolSpec(poolId)
@@ -419,8 +419,11 @@ class AzBatchService implements Closeable {
419
419
}
420
420
}
421
421
// config overall container settings
422
- final containerOpts = new BatchTaskContainerSettings (container)
422
+ BatchTaskContainerSettings containerOpts = null
423
+ if (container) {
424
+ containerOpts = new BatchTaskContainerSettings (container)
423
425
.setContainerRunOptions(opts)
426
+ }
424
427
// submit command line
425
428
final String cmd = fusionEnabled
426
429
? launcher. fusionSubmitCli(task). join(' ' )
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ class AzBatchTaskHandler extends TaskHandler implements FusionAwareTask {
60
60
this . outputFile = task. workDir. resolve(TaskRun . CMD_OUTFILE )
61
61
this . errorFile = task. workDir. resolve(TaskRun . CMD_ERRFILE )
62
62
this . exitFile = task. workDir. resolve(TaskRun . CMD_EXIT )
63
- validateConfiguration()
64
63
}
65
64
66
65
/* * only for testing purpose - DO NOT USE */
@@ -70,12 +69,6 @@ class AzBatchTaskHandler extends TaskHandler implements FusionAwareTask {
70
69
return executor. batchService
71
70
}
72
71
73
- void validateConfiguration () {
74
- if (! task. container) {
75
- throw new ProcessUnrecoverableException (" No container image specified for process $task . name -- Either specify the container to use in the process definition or with 'process.container' value in your config" )
76
- }
77
- }
78
-
79
72
protected BashWrapperBuilder createBashWrapper () {
80
73
fusionEnabled()
81
74
? fusionLauncher()
You can’t perform that action at this time.
0 commit comments