1 package SL::DB::BackgroundJob;
5 use DateTime::Event::Cron;
7 use SL::DB::MetaSetup::BackgroundJob;
8 use SL::DB::Manager::BackgroundJob;
10 sub update_next_run_at {
13 my $cron = DateTime::Event::Cron->new_from_cron($self->cron_spec || '* * * * *');
14 $self->update_attributes(next_run_at => $cron->next->set_time_zone($::locale->get_local_time_zone));