1 package SL::DB::BackgroundJobHistory;
5 use SL::DB::MetaSetup::BackgroundJobHistory;
6 use SL::DB::Manager::BackgroundJobHistory;
8 __PACKAGE__->meta->initialize;
10 use constant SUCCESS => 'success';
11 use constant FAILURE => 'failure';
13 sub has_succeeded { $_[0] && (($_[0]->status || '') eq SUCCESS()) }
14 sub has_failed { $_[0] && (($_[0]->status || '') eq FAILURE()) }