Skip to content

Commit

Permalink
Fix watchPath hang shutdown execution
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Dec 16, 2022
1 parent d1bb2fe commit bac0ced
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/nextflow/src/main/groovy/nextflow/Channel.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ class Channel {
? new DirWatcher(syntax,folder,pattern,skipHidden,events,fs)
: new DirWatcherV2(syntax,folder,pattern,skipHidden,events,fs)
watcher.onComplete { result.bind(STOP) }
Global.onCleanup(it -> watcher.terminate())

if( NF.isDsl2() ) {
session.addIgniter {
Expand Down

0 comments on commit bac0ced

Please sign in to comment.