charId = $charId; $this->corpId = $corpId; $this->page = $page; //Set the connection for the job $this->connection = 'redis'; } /** * Execute the job. * The job's task is to get all of the information for a particular structure * and store it in the database. This task can take a few seconds because of the ESI * calls required to store the information. We leave this type of job up to the queue * in order to take the load off of the cron job. * * @return void */ public function handle() { $sHelper = new StructureHelper($this->charId, $this->corpId); $structures = $sHelper->GetStructuresByPage($this->page); foreach($structures as $structure) { $sHelper->ProcessStructure($structure); } //After the job is completed, delete the job $this->delete(); } }