From: Moritz Bunkus Date: Thu, 30 Aug 2012 08:43:32 +0000 (+0200) Subject: Task-Server: Tatsächliches Job-Package zum Ausführungszeitpunkt laden X-Git-Tag: release-3.0.0beta1~264^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=074c3e6e526908e7ae25801e29308a89dd88ad21;p=kivitendo-erp.git Task-Server: Tatsächliches Job-Package zum Ausführungszeitpunkt laden --- diff --git a/SL/DB/BackgroundJob.pm b/SL/DB/BackgroundJob.pm index b7b907bb7..9f2f7cb05 100644 --- a/SL/DB/BackgroundJob.pm +++ b/SL/DB/BackgroundJob.pm @@ -10,7 +10,6 @@ use SL::DB::Manager::BackgroundJob; use SL::DB::BackgroundJobHistory; -use SL::BackgroundJob::Test; use SL::System::Process; __PACKAGE__->before_save('_before_save_set_next_run_at'); @@ -38,6 +37,7 @@ sub run { my $history; my $ok = eval { + eval "require $package" or die $@; my $result = $package->new->run($self); $history = SL::DB::BackgroundJobHistory