1 package SL::BackgroundJob::Test;
 
   5 use parent qw(SL::BackgroundJob::Base);
 
   7 use SL::System::TaskServer;
 
  10   my ($self, $db_obj) = @_;
 
  11   my $data            = $db_obj->data_as_hash;
 
  13   $::lxdebug->message(0, "Test job ID " . $db_obj->id . " is being executed on node " . SL::System::TaskServer::node_id() . ".");
 
  15   die "Oh cruel world: " . $data->{exception} if $data->{exception};
 
  17   return exists $data->{result} ? $data->{result} : 1;