SetStartStatus(); //Setup the Finances container $finance = new FinanceHelper(); //Get the total pages for the journal for the holding corporation $pages = $finance->GetJournalPageCount(1, 93738489); //Dispatch a single job for each page to process for($i = 1; $i <= $pages; $i++) { $job = new JobProcessWalletJournal; $job->division = 1; $job->charId = 93738489; $job->page = $i; ProcessWalletJournalJob::dispatch($job)->onQueue('journal'); } //Mark the job as finished $task->SetStopStatus(); } }