mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-24 06:54:09 +00:00
testing multiple queue in sqs
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user