From b60db85375812f6cedfdb4e153de4ed5735f4854 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Sat, 15 Feb 2014 15:43:34 -0800 Subject: [PATCH] Say when re-using existing jobs, even without debug mode. closes #2183 --- sdk/cli/bin/arv-run-pipeline-instance | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/cli/bin/arv-run-pipeline-instance b/sdk/cli/bin/arv-run-pipeline-instance index 0be054ba59..d2b1109e16 100755 --- a/sdk/cli/bin/arv-run-pipeline-instance +++ b/sdk/cli/bin/arv-run-pipeline-instance @@ -131,6 +131,7 @@ end # this program, that is, not the pipeline component parameters). p = Trollop::Parser.new do + version __FILE__ opt(:dry_run, "Do not start any new jobs or wait for existing jobs to finish. Just find out whether jobs are finished, queued, or running for each component.", :type => :boolean, @@ -447,7 +448,7 @@ class WhRunPipelineInstance if candidate_job[:success] unless @options[:no_reuse_finished] job = candidate_job - debuglog "component #{cname} satisfied by job #{job[:uuid]} version #{job[:script_version]}" + $stderr.puts "using #{job[:uuid]} (finished at #{job[:finished_at]}) for component #{cname}" c[:job] = job end else @@ -457,7 +458,7 @@ class WhRunPipelineInstance end if not c[:job] and second_place_job job = second_place_job - debuglog "component #{cname} satisfied by job #{job[:uuid]} version #{job[:script_version]}" + $stderr.puts "using #{job[:uuid]} (running since #{job[:started_at]}) for component #{cname}" c[:job] = job end if not c[:job] -- 2.30.2