Bug 27421: (QA follow-up) Sub finish should respect failed status too

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2022-09-05 10:33:01 +00:00 committed by Tomas Cohen Arazi
parent 52dc337ced
commit 3f79fcd5aa
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ Makes the job record as finished. If the job status is I<cancelled>, it is kept.
sub finish {
my ( $self, $data ) = @_;
$self->status('finished') unless $self->status eq 'cancelled';
$self->status('finished') unless $self->status eq 'cancelled' or $self->status eq 'failed';
return $self->set(
{