fixed job issue
This commit is contained in:
@@ -52,8 +52,6 @@ class MiningTaxesAdminController extends Controller
|
|||||||
$athanors = $sHelper->GetStructuresByType('Athanor');
|
$athanors = $sHelper->GetStructuresByType('Athanor');
|
||||||
$tataras = $sHelper->GetStructuresByType('Tatara');
|
$tataras = $sHelper->GetStructuresByType('Tatara');
|
||||||
|
|
||||||
dd($athanors);
|
|
||||||
|
|
||||||
foreach($athanors as $athanor) {
|
foreach($athanors as $athanor) {
|
||||||
$structures->push([
|
$structures->push([
|
||||||
$athanor->structure_name => $athanor->structure_id,
|
$athanor->structure_name => $athanor->structure_id,
|
||||||
|
|||||||
@@ -156,8 +156,8 @@ class FetchAllianceStructures implements ShouldQueue
|
|||||||
Log::critical("Gateway timeout in FetchAllianceStructures. Releasing the job back to the queue in 30 seconds.");
|
Log::critical("Gateway timeout in FetchAllianceStructures. Releasing the job back to the queue in 30 seconds.");
|
||||||
$this->release(30);
|
$this->release(30);
|
||||||
break;
|
break;
|
||||||
case 201:
|
case 201: //Good response code
|
||||||
//Good response code
|
$this->delete();
|
||||||
break;
|
break;
|
||||||
//If no code is given, then log and break out of switch.
|
//If no code is given, then log and break out of switch.
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use Illuminate\Queue\InteractsWithQueue;
|
|||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
//Jobs
|
//Jobs
|
||||||
use App\Jobs\Commands\FetchAllianceStructures;
|
use App\Jobs\Commands\Structures\FetchAllianceStructures;
|
||||||
|
|
||||||
//Models
|
//Models
|
||||||
use App\Models\Structure\Structure;
|
use App\Models\Structure\Structure;
|
||||||
|
|||||||
Reference in New Issue
Block a user