connection = 'redis'; $this->onQueue('finances'); } /** * Execute the job. * * @return void */ public function handle() { //Declare variables $fHelper = new FinanceHelper; $config = config('esi'); $pages = $fHelper->GetAllianceWalletJournalPages(1, $config['primary']); //If the number of pages received is zero there is an error in the job. if($pages == 0) { Log::critical('Failed to get the number of pages in the job.'); $this->delete(); } for($i = 1; $i <= $pages; $i++) { UpdateAllianceWalletJournalPage::dispatch(1, $config['primary'], $i)->onQueue('journal'); } } /** * Set the tags for Horzion * * @var array */ public function tags() { return ['UpdateAllianceWalletJournal', 'Finances']; } }