diff --git a/core/Command/Background/JobWorker.php b/core/Command/Background/JobWorker.php index 747e8ce79fca1..ad30e3e9f7bf2 100644 --- a/core/Command/Background/JobWorker.php +++ b/core/Command/Background/JobWorker.php @@ -139,9 +139,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int memory_reset_peak_usage(); $jobClassId = $this->jobClassesRegistry->getId($jobClassName); $jobRunId = $this->jobRuns->started($jobClassId); - $startTime = microtime(true); + $jobStartTime = microtime(true); $job->start($this->jobList); - $timeSpent = microtime(true) - $startTime; + $timeSpent = microtime(true) - $jobStartTime; $jobMemoryPeak = memory_get_peak_usage(); // TODO Job failure will never be catched here because exceptions are catched within $job->start method // The error will only be visible in server logs.