Revert "move expire code to be initial plugin pilot (broken)"

I think we'll only do the new backend code for jobs with a device.

This reverts commit 07998b72d9.
This commit is contained in:
Oliver Gorwits
2017-08-14 18:11:42 +01:00
parent 61dc80aff8
commit 31d1977f1e
4 changed files with 101 additions and 122 deletions

View File

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