nextflow-io / nextflow

A DSL for data-driven computational pipelines
http://nextflow.io
Apache License 2.0
2.71k stars 620 forks source link

Nextflow clean before does not report anything with a dry run. #1588

Closed mahesh-panchal closed 3 years ago

mahesh-panchal commented 4 years ago

Bug report

Nextflow clean with the -before -n flags does not report any directories for previous runs.

Expected behavior and actual behavior

I expected the work directories from the previous runs to be shown, but nothing was displayed.

$ nextflow clean -n -before thirsty_joliot
$ nextflow clean -n -after thirsty_joliot
$ nextflow clean -n -but thirsty_joliot
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/8e/16a81b36bf6660d1f86d32ed29ca94
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/47/c81b423ac954e40946b44e412024c0
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/2f/e7119c60f58883aef7792f060ca3d8
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/3f/9dbe91ce9e13e6991871c986bd5f52
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/0c/3a2ffe80cc1aaa748960974d1381dd
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/99/2bce109837c2d658c8f53c3181b142
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/75/5827e0595c072709c160c0b354df3f
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/e8/1bdffec08f81c3297ccceb4ea806fd
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/f9/2d39d49fa66c0749fe3743033638c4
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/9f/b52c85e9c1d6a6e262a6ea01007660
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/d9/a7777282c7b121b052353e73ae5c2f
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/8c/d97c50c848a6464687e7d7c389dcec
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/48/51393e10fbda5fc53e01201dd301a7
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/a1/107974792417d5b6f43d6f6277e89c
Would remove /home/mahpa906/Nextflow/NBIS_annotation_pipeline_test/work/a8/fdfff53b585a42f20f6b49d7ed902c

Steps to reproduce the problem

$ git clone https://github.com/NBISweden/pipelines-nextflow
$ nextflow run -profile test,conda pipelines-nextflow/AnnotationPreprocessing
$ nextflow run -profile test,singularity pipelines-nextflow/AnnotationPreprocessing
$ nextflow clean -n -before <run2_id>
$ nextflow clean -n -but <run2_id>

Program output

There was no output.

Environment

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.