diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-15 16:05:55 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-15 16:05:55 +0100 |
commit | 0eafdaa37f15f54a8229f9aacb5af6c4142d2009 (patch) | |
tree | b1e1ec9eec1222069421e7e9adb088fd63ec0015 | |
parent | 63793868f70cf05426730f95b8ba082a600da737 (diff) | |
parent | 2599858a25148a7b2e4d4815f8e80892b887d494 (diff) |
Merge branch 'cron-warning-no-data' into rails-3-develop
-rwxr-xr-x | script/request-creation-graph | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/request-creation-graph b/script/request-creation-graph index 7d347a7d2..f3baa2326 100755 --- a/script/request-creation-graph +++ b/script/request-creation-graph @@ -51,6 +51,12 @@ function grab_data { # rather nastily, work out the cumulative heights in reverse, so can plot impulses on top of each other grab_data "where (1 = 1)" $SOURCEA +if [ ! -s $SOURCEA ] ; then + # No data yet, skip graphing + echo "warning: no data to graph, skipping task" + exit +fi + grab_data "where described_state not in ('waiting_response')" $SOURCEB grab_data "where described_state not in ('waiting_response', 'waiting_clarification')" $SOURCEC grab_data "where described_state not in ('waiting_response', 'waiting_clarification', 'not_held')" $SOURCED |