move expire code to be initial plugin pilot (broken)

This commit is contained in:
Oliver Gorwits
2017-08-05 22:15:00 +01:00
parent 685ec02108
commit 07998b72d9
4 changed files with 122 additions and 101 deletions

View File

@@ -53,11 +53,11 @@ register 'register_core_worker' => sub {
# run worker
my $happy = false;
try {
$code->($job, $workerconf);
my @result = $code->($job, $workerconf);
$happy = true;
}
catch { debug $_ };
return $happy;
return @result if $happy; # FIXME
};
my $hook = $workerconf->{hook} .'_'. $phase;