From 12da4b4e605327290ea55cab67d06bc48cd99def Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sat, 23 Dec 2023 03:40:16 +0800 Subject: [PATCH] testing multiple queue in sqs --- .../ListPackingListsJobLogic.php | 19 ++++++++++--------- vapor.yml | 6 +++--- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsJobLogic.php b/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsJobLogic.php index 42eb86d8..c7d45f0a 100644 --- a/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsJobLogic.php +++ b/app/Classes/Modules/PackingLists/ControllersLogic/ListPackingListsJobLogic.php @@ -46,15 +46,16 @@ class ListPackingListsJobLogic extends AbstractControllerLogic ); - $filters = Helper::deserializeFilters($request->input('filters')); - if(isset($filters['priority'])){ - if($filters['priority'] == '1'){ - ListPackingListsJob::dispatch($listGenericJobObject)->onQueue('hellokitty1'); //cief todo: testing sqs - } - else{ - ListPackingListsJob::dispatch($listGenericJobObject)->onQueue('hellokitty2'); //cief todo: testing sqs - } - } + // $filters = Helper::deserializeFilters($request->input('filters')); + // if(isset($filters['priority'])){ + // if($filters['priority'] == '1'){ + // ListPackingListsJob::dispatch($listGenericJobObject)->onQueue('hellokitty1'); //cief todo: testing sqs + // } + // else{ + // ListPackingListsJob::dispatch($listGenericJobObject)->onQueue('hellokitty2'); //cief todo: testing sqs + // } + // } + ListPackingListsJob::dispatch($listGenericJobObject); $result = []; $result['job_id'] = $jobId; diff --git a/vapor.yml b/vapor.yml index 274818ff..575de12b 100644 --- a/vapor.yml +++ b/vapor.yml @@ -36,9 +36,9 @@ environments: memory: 1024 cli-memory: 512 # queue-memory: 1024 - queues: - - hellokitty1 #cief todo: testing sqs - - hellokitty2 #cief todo: testing sqs + # queues: + # - hellokitty1 #cief todo: testing sqs + # - hellokitty2 #cief todo: testing sqs gateway-version: 2 database: cief-rds-mysql storage: shipping-portal-development