From ccae387339468f19c3be2a33879550c15a8bfc6f Mon Sep 17 00:00:00 2001
From: Matthieu Muffato <muffato@ebi.ac.uk>
Date: Wed, 21 May 2014 02:20:51 +0100
Subject: [PATCH] The in-memory status can still be updated

---
 modules/Bio/EnsEMBL/Hive/AnalysisJob.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm b/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
index cfee0f96c..d49211b09 100644
--- a/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
+++ b/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
@@ -137,8 +137,8 @@ sub semaphored_job_id {
 
 sub update_status {
     my ($self, $status ) = @_;
-    return unless($self->adaptor);
     $self->status($status);
+    return unless($self->adaptor);
     $self->adaptor->update_status($self);
 }
 
-- 
GitLab