Skip to content

Commit

Permalink
Add timestamp to pipeline info files to allow -resume on AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
antunderwood committed May 9, 2021
1 parent f5ad2bb commit d4b6ed4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,22 @@ env {
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']

def trace_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss')
timeline {
enabled = true
file = "${params.tracedir}/execution_timeline.html"
file = "${params.tracedir}/execution_timeline_${trace_timestamp}.html"
}
report {
enabled = true
file = "${params.tracedir}/execution_report.html"
file = "${params.tracedir}/execution_report_${trace_timestamp}.html"
}
trace {
enabled = true
file = "${params.tracedir}/execution_trace.txt"
file = "${params.tracedir}/execution_trace_${trace_timestamp}.txt"
}
dag {
enabled = true
file = "${params.tracedir}/pipeline_dag.svg"
file = "${params.tracedir}/pipeline_dag_${trace_timestamp}.svg"
}

manifest {
Expand Down

0 comments on commit d4b6ed4

Please sign in to comment.