testing multiple queue in sqs

This commit is contained in:
Dillon Ngo
2023-12-23 03:40:16 +08:00
parent 0ab6d2f38e
commit 12da4b4e60
2 changed files with 13 additions and 12 deletions
@@ -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;
+3 -3
View File
@@ -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