both 1 *and* -1 mean that Stemweb is working on it.
tla [Thu, 27 Nov 2014 16:57:47 +0000 (17:57 +0100)]
lib/stemmaweb/Controller/Stemweb.pm

index 262f235..7b7bb34 100644 (file)
@@ -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.