Projekt

Allgemein

Profil

Herunterladen (384 Bytes) Statistiken
| Zweig: | Markierung: | Revision:
295e585a Moritz Bunkus
package SL::DB::BackgroundJobHistory;

use strict;

use SL::DB::MetaSetup::BackgroundJobHistory;
23a8d2c0 Moritz Bunkus
use SL::DB::Manager::BackgroundJobHistory;
295e585a Moritz Bunkus
2d7e4203 Sven Schöling
__PACKAGE__->meta->initialize;

8e115155 Moritz Bunkus
use constant SUCCESS => 'success';
use constant FAILURE => 'failure';

sub has_succeeded { $_[0] && (($_[0]->status || '') eq SUCCESS()) }
sub has_failed { $_[0] && (($_[0]->status || '') eq FAILURE()) }

295e585a Moritz Bunkus
1;