SetStartStatus(); $startTime = time(); UpdateAllianceWalletJournalJob::dispatch(); $endTime = time(); printf("Updating the wallets took " . ($endTime - $startTime) . " seconds.\r\n"); //Set the task as stopped $task->SetStopStatus(); return 0; } }