Skip to content

Commit d19f91c

Browse files
Allow to skip PublishDir
Allow to skip PublishDir
2 parents f1c4986 + 277f975 commit d19f91c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/nf-cws/src/main/nextflow/cws/processor/CWSTaskPollingMonitor.groovy

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ class CWSTaskPollingMonitor extends TaskPollingMonitor {
6666
return pendingTasks
6767
}
6868

69+
private static removePublishDirIfSkipEnabled( TaskHandler handler ) {
70+
if( handler.task.config.get('skipPublishDir') ) {
71+
handler.task.config.put('publishDir', null)
72+
}
73+
}
74+
6975
private static void checkPublishDirMode(TaskHandler handler ) {
7076
def publishDirs = handler.task.config.get('publishDir')
7177
if ( publishDirs && publishDirs instanceof List ) {
@@ -95,6 +101,7 @@ class CWSTaskPollingMonitor extends TaskPollingMonitor {
95101
OfflineLocalPath path = new WorkdirPath( workDir, attributes, workDir, helper )
96102
handler.task.workDir = path
97103
}
104+
removePublishDirIfSkipEnabled(handler)
98105
checkPublishDirMode(handler)
99106
super.finalizeTask(handler)
100107
helper?.validate()

0 commit comments

Comments
 (0)