From e24f4318937f905ff132588ba2da71cdd23a1386 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 19 May 2021 01:23:11 +0900 Subject: [PATCH] assets job --- app/Jobs/Commands/Assets/ProcessAllianceAssets.php | 3 +++ config/horizon.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/app/Jobs/Commands/Assets/ProcessAllianceAssets.php b/app/Jobs/Commands/Assets/ProcessAllianceAssets.php index 2e929f525..a36688fa9 100644 --- a/app/Jobs/Commands/Assets/ProcessAllianceAssets.php +++ b/app/Jobs/Commands/Assets/ProcessAllianceAssets.php @@ -70,6 +70,8 @@ class ProcessAllianceAssets implements ShouldQueue $as->is_singleton = $this->asset->is_singleton; $as->item_id = $this->asset->item_id; $as->location_flag = $this->asset->location_flag; + $as->location_id = $this->asset->location_id; + $as->location_type = $this->asset->location_type; $as->quantity = $this->asset->quantity; $as->type_id = $this->asset->type_id; $as->save(); @@ -80,6 +82,7 @@ class ProcessAllianceAssets implements ShouldQueue ])->update([ 'is_blueprint_copy' => $this->asset->is_blueprint_copy, 'location_flag' => $this->asset->location_flag, + 'location_id' => $this->asset->location_id, 'location_type' => $this->asset->location_type, 'quantity' => $this->asset->quantity, 'type_id' => $this->asset->type_id, diff --git a/config/horizon.php b/config/horizon.php index 9a1948ae9..10ffc7bde 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -158,6 +158,8 @@ return [ 'maxProcesses' => 10, 'balanceMaxShift' => 2, 'balanceCooldown' => 5, + 'maxTime' => 3600, + 'maxJobs' => 1000, 'tries' => 3, ], ], @@ -180,6 +182,8 @@ return [ 'maxProcesses' => 10, 'balanceMaxShift' => 2, 'balanceCooldown' => 5, + 'maxTime' => 3600, + 'maxJobs' => 1000, 'tries' => 3, ], ],