SetStartStatus(); //Get the site configuration which holds some data we need $config = config('esi'); //Get the observers from the database $observers = Observer::all(); //For each of the observers, send a job to fetch the mining ledger foreach($observers as $obs) { //Dispatch the mining taxes ledger jobs FetchMiningTaxesLedgersJob::dispatch($config['primary'], $config['corporation'], $obs->observer_id)->onQueue('miningtaxes'); } //Set the task as finished $task->SetStopStatus(); //Return 0 return 0; } }