From a5abc079dc78c2c5a158688521cb55da656b10ae Mon Sep 17 00:00:00 2001 From: Phillip Dexheimer Date: Wed, 14 May 2014 22:31:46 -0400 Subject: [PATCH] Revised final Queue status line to display number of jobs in each state when the script fails * Addresses PT 61552466 * Included a simple scala script in private/testdata that will always fail --- .../scala/org/broadinstitute/sting/queue/QCommandLine.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/queue-framework/src/main/scala/org/broadinstitute/sting/queue/QCommandLine.scala b/public/queue-framework/src/main/scala/org/broadinstitute/sting/queue/QCommandLine.scala index 5e7ed8f2d..88e57182e 100644 --- a/public/queue-framework/src/main/scala/org/broadinstitute/sting/queue/QCommandLine.scala +++ b/public/queue-framework/src/main/scala/org/broadinstitute/sting/queue/QCommandLine.scala @@ -207,7 +207,10 @@ class QCommandLine extends CommandLineProgram with Logging { } } } - logger.info("Script %s with %d total jobs".format(if (success) "completed successfully" else "failed", functionsAndStatusSize)) + if (success) + logger.info("Script completed successfully with %d total jobs".format(functionsAndStatusSize)) + else + logger.info("Script failed: %s".format(qGraph.formattedStatusCounts)) result }