From: tla Date: Thu, 27 Nov 2014 16:57:47 +0000 (+0100) Subject: both 1 *and* -1 mean that Stemweb is working on it. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c3001d44d554b774944b3b020a1230e6b26f66e7;p=scpubgit%2Fstemmaweb.git both 1 *and* -1 mean that Stemweb is working on it. --- diff --git a/lib/stemmaweb/Controller/Stemweb.pm b/lib/stemmaweb/Controller/Stemweb.pm index 262f235..7b7bb34 100644 --- a/lib/stemmaweb/Controller/Stemweb.pm +++ b/lib/stemmaweb/Controller/Stemweb.pm @@ -214,7 +214,8 @@ sub _process_stemweb_result { } $c->stash->{'result'} = { status => 'notfound' }; } - } elsif( $answer->{status} == 1 ) { + } elsif( $answer->{status} == 1 || $answer->{status} == -1 ) { + # 1 means running, -1 means waiting to run. Either way, 'not ready'. $c->stash->{'result'} = { 'status' => 'running' }; } else { # Failure. Clear the job ID so that the user can try again.