execute(); $entity->updateExecutionTime(); Log::write("DiffQuantity: Differential quantity sync completed, next in " . $entity->getUpdateTiming() . "s", Log::INFO, Log::CONTEXT_CRONJOB); // Self-reschedule $nextRun = gmdate('Y-m-d H:i:s', time() + $entity->getUpdateTiming()); JobQueue::push('diff_quantity', null, 60, $nextRun, 'quantity_sync', 5, (int) $job->id); return JobResult::success(); } }