mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Setup priority queue with AWS SQS
This commit is contained in:
@@ -75,7 +75,7 @@ class ListPackingListsJobLogic extends AbstractControllerLogic
|
||||
// ListPackingListsJob::dispatch($listGenericJobObject)->onQueue('hellokitty2'); //cief todo: testing sqs
|
||||
// }
|
||||
// }
|
||||
ListPackingListsJob::dispatch($listGenericJobObject)->onQueue('high_priority');
|
||||
ListPackingListsJob::dispatch($listGenericJobObject)->onQueue('shipping-portal-high_priority');
|
||||
|
||||
$result = [];
|
||||
$result['job_id'] = $jobId;
|
||||
|
||||
+2
-2
@@ -34,10 +34,10 @@ return [
|
||||
'driver' => 'sync',
|
||||
],
|
||||
|
||||
'high_priority' => [
|
||||
'shipping-portal-high_priority' => [
|
||||
'driver' => 'database',
|
||||
'table' => 'jobs',
|
||||
'queue' => 'high_priority',
|
||||
'queue' => 'shipping-portal-high_priority',
|
||||
'retry_after' => 3600,
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
@@ -37,8 +37,8 @@ environments:
|
||||
cli-memory: 512
|
||||
# queue-memory: 1024
|
||||
queues:
|
||||
- default #cief todo: testing sqs
|
||||
- high_priority #cief todo: testing sqs
|
||||
- shipping-portal-default-development #cief todo: testing sqs
|
||||
- shipping-portal-high_priority-development #cief todo: testing sqs
|
||||
# gateway-version: 2
|
||||
database: cief-rds-mysql
|
||||
storage: shipping-portal-development
|
||||
|
||||
Reference in New Issue
Block a user