update packinglists from vt portal jobs and schedule

This commit is contained in:
omair saleh
2021-08-23 10:52:25 +08:00
parent c79443eb62
commit c07bcb6334
+5 -9
View File
@@ -21,15 +21,11 @@ class OrdersTableSeeder extends Seeder
*/
public function run()
{
FetchWarehouseReceiveListFromVTPortalJob::dispatch()->chain([
new FetchLoadedContainersFromVTPortalJob(),
new FetchPackingListFromVTPortalJob(),
new FetchContainersStatusUpdateFromVTPortalJob(),
new FetchDeliveryListFromVTPortalJob(),
]);
FetchWarehouseReceiveListFromVTPortalJob::dispatch();
FetchLoadedContainersFromVTPortalJob::dispatch()->delay(now()->addMinutes(20));
FetchPackingListFromVTPortalJob::dispatch()->delay(now()->addMinutes(40));
FetchContainersStatusUpdateFromVTPortalJob::dispatch()->delay(now()->addMinutes(60));
FetchDeliveryListFromVTPortalJob::dispatch()->delay(now()->addMinutes(80));
}
}