From 9fe96a299efbb07d655eaf349b3550fc9a1c3433 Mon Sep 17 00:00:00 2001
From: Jessica Severin <jessica@ebi.ac.uk>
Date: Sat, 1 Oct 2005 10:43:07 +0000
Subject: [PATCH] made retry_count default to return 0 if it wasn't set. 
 Useful for when jobs are created outside of the database (ie for debug runs).

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

diff --git a/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm b/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
index 211168a34..f53a98af8 100755
--- a/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
+++ b/modules/Bio/EnsEMBL/Hive/AnalysisJob.pm
@@ -92,6 +92,7 @@ sub update_status {
 sub retry_count {
   my $self = shift;
   $self->{'_retry_count'} = shift if(@_);
+  $self->{'_retry_count'} = 0 unless(defined($self->{'_retry_count'}));
   return $self->{'_retry_count'};
 }
 
-- 
GitLab