Skip to content

Commit

Permalink
Fix inspect should not write history entry
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed May 14, 2024
1 parent a5ecf8a commit c713ad5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class CmdInspect extends CmdBase {
target.preview = true
target.previewAction = this.&applyInspect
target.ansiLog = false
target.skipHistoryFile = true
// run it
target.run()
}
Expand Down
6 changes: 5 additions & 1 deletion modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ class CmdRun extends CmdBase implements HubOptions {
@Parameter(names=['-disable-jobs-cancellation'], description = 'Prevent the cancellation of child jobs on execution termination')
Boolean disableJobsCancellation

Boolean skipHistoryFile

Boolean getDisableJobsCancellation() {
return disableJobsCancellation!=null
? disableJobsCancellation
Expand Down Expand Up @@ -362,7 +364,9 @@ class CmdRun extends CmdBase implements HubOptions {
log.debug( '\n'+info )

// -- add this run to the local history
runner.verifyAndTrackHistory(launcher.cliString, runName)
if( !skipHistoryFile ) {
runner.verifyAndTrackHistory(launcher.cliString, runName)
}

// -- run it!
runner.execute(scriptArgs, this.entryName)
Expand Down

0 comments on commit c713ad5

Please sign in to comment.