fix: [internal] Private property access

pull/7958/head
Jakub Onderka 2021-11-12 20:39:15 +01:00
parent 44279f090a
commit 38fa8d8463
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class StartWorkerShell extends AppShell
$this->BackgroundJobsTool->run($job);
} catch (Exception $exception) {
CakeLog::error("[WORKER PID: {$this->worker->pid()}][{$this->worker->queue()}] - job id: {$job->id()} failed with exception: {$exception->getMessage()}");
$job->status = BackgroundJob::STATUS_FAILED;
$job->setStatus(BackgroundJob::STATUS_FAILED);
$this->BackgroundJobsTool->update($job);
}
}