jobId = $jobId; } public function configure() { } public function run() { $app = new Application(); $data = (object) [ 'id' => $this->jobId, ]; try { $app->run(JobRunner::class, $data); } catch (Throwable $e) { $GLOBALS['log']->error( "JobTask: Failed to run job '{$this->jobId}'. Error: " . $e->getMessage() ); } } }