SetStartStatus(); //Setup the Finances container $finance = new FinanceHelper(); //Get the esi configuration $config = config('esi'); //Get the total pages for the journal for the sov bills from the holding corporation $pages = $finance->GetJournalPageCount(6, $config['primary']); //Dispatch a job for each page to process //for($i = 1; $i <= $pages; $i++) { // $job = new JobProcessWalletJournal; // $job->division = 6; // $job->charId = $config['primary']; // $job->page = $i; // ProcessWalletJournalJob::dispatch($job)->onQueue('journal'); //} //Try to figure it out from the command itself. for($i = 1; $i <= $pages; $i++) { printf("Getting page: " . $i . "\n"); $finance->GetWalletJournalPage(6, $config['primary'], $i); } //Mark the job as finished $task->SetStopStatus(); } }