update packinglists from vt portal jobs and schedule

This commit is contained in:
omair saleh
2021-08-30 00:31:29 +08:00
parent 32d3523190
commit 9c62a792b7
4 changed files with 10 additions and 11 deletions
@@ -16,7 +16,7 @@ class FetchLoadedContainersFromVTPortalJob implements ShouldQueue
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public $timeout = 300;
public $timeout = 900;
/**
* Execute the job.
@@ -16,7 +16,7 @@ class FetchWarehouseReceiveListFromVTPortalJob implements ShouldQueue
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public $timeout = 300;
public $timeout = 900;
/**
* Execute the job.
+1 -1
View File
@@ -38,7 +38,7 @@ return [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
'retry_after' => 3600,
'after_commit' => false,
],
+7 -8
View File
@@ -21,14 +21,13 @@ class OrdersTableSeeder extends Seeder
*/
public function run()
{
FetchLoadedContainersFromVTPortalJob::dispatch();
//
// FetchWarehouseReceiveListFromVTPortalJob::withChain([
// new FetchLoadedContainersFromVTPortalJob,
// new FetchPackingListFromVTPortalJob,
// new FetchContainersStatusUpdateFromVTPortalJob,
// new FetchDeliveryListFromVTPortalJob
// ])->dispatch();
FetchWarehouseReceiveListFromVTPortalJob::withChain([
new FetchLoadedContainersFromVTPortalJob,
new FetchPackingListFromVTPortalJob,
new FetchContainersStatusUpdateFromVTPortalJob,
new FetchDeliveryListFromVTPortalJob
])->dispatch();
}
}