Skip to content

Feature/watch path#754

Merged
gongyixiao merged 16 commits intodevelopfrom
feature/watchPath
Mar 17, 2020
Merged

Feature/watch path#754
gongyixiao merged 16 commits intodevelopfrom
feature/watchPath

Conversation

@gongyixiao
Copy link
Copy Markdown
Collaborator

@gongyixiao gongyixiao commented Mar 2, 2020

Add --watch mode to support watching for changes in --mapping/--bamMapping <tsv> and --pairing <tsv> using watchPath()
See:
https://www.nextflow.io/docs/latest/channel.html?highlight=watchpath#watchpath
https://docs.oracle.com/javase/tutorial/essential/io/notification.html#overview
https://docs.oracle.com/javase/tutorial/essential/io/examples/WatchDir.java

Notes:

  • This only works when you make changes to the file you are watching on the same node that your nextflow main process is running due. Meaning if you are running nextflow run pipeline.nf on node-01, you need to login to node-01 to make changes to the file you are watching.

  • Please ensure all of your inputs in the file you are watching is absolutely correct, because --watch mode is built to last forever, so if invalid entries appear in the input file, the pipeline will simply ignore it (maybe even without a warning), or the pipeline will stop execution.

@gongyixiao gongyixiao added the enhancement New feature or request label Mar 2, 2020
@gongyixiao gongyixiao self-assigned this Mar 2, 2020
@gongyixiao gongyixiao requested a review from anoronh4 March 9, 2020 22:29
@gongyixiao gongyixiao marked this pull request as ready for review March 9, 2020 22:29
@gongyixiao gongyixiao changed the base branch from develop to feature/aggregateV2 March 12, 2020 14:56
@gongyixiao gongyixiao changed the base branch from feature/aggregateV2 to develop March 16, 2020 20:01
Copy link
Copy Markdown
Collaborator

@anoronh4 anoronh4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setting --aggregate with no tsv file as input during watch leads to no aggregation of samples, even as pairing and mapping files are populating and complete. Approving pull request for now, but we need to address the use case in the future.

@gongyixiao gongyixiao merged commit a8808df into develop Mar 17, 2020
@gongyixiao gongyixiao deleted the feature/watchPath branch March 17, 2020 20:14
@gongyixiao gongyixiao mentioned this pull request Mar 25, 2020
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants