Commit 9fe96a29 authored by Jessica Severin's avatar Jessica Severin
Browse files

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).
parent 13a71ae1
......@@ -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'};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment