Skip to content

Commit c713ad5

Browse files
committed
Fix inspect should not write history entry
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent a5ecf8a commit c713ad5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: modules/nextflow/src/main/groovy/nextflow/cli/CmdInspect.groovy

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class CmdInspect extends CmdBase {
8585
target.preview = true
8686
target.previewAction = this.&applyInspect
8787
target.ansiLog = false
88+
target.skipHistoryFile = true
8889
// run it
8990
target.run()
9091
}

Diff for: modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy

+5-1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ class CmdRun extends CmdBase implements HubOptions {
266266
@Parameter(names=['-disable-jobs-cancellation'], description = 'Prevent the cancellation of child jobs on execution termination')
267267
Boolean disableJobsCancellation
268268

269+
Boolean skipHistoryFile
270+
269271
Boolean getDisableJobsCancellation() {
270272
return disableJobsCancellation!=null
271273
? disableJobsCancellation
@@ -362,7 +364,9 @@ class CmdRun extends CmdBase implements HubOptions {
362364
log.debug( '\n'+info )
363365

364366
// -- add this run to the local history
365-
runner.verifyAndTrackHistory(launcher.cliString, runName)
367+
if( !skipHistoryFile ) {
368+
runner.verifyAndTrackHistory(launcher.cliString, runName)
369+
}
366370

367371
// -- run it!
368372
runner.execute(scriptArgs, this.entryName)

0 commit comments

Comments
 (0)