Setup priority queue with AWS SQS (Sync from Shipping Portal)

This commit is contained in:
Dillon Ngo
2024-03-22 13:53:56 +08:00
parent 156c464514
commit da47b92b7c
4 changed files with 12 additions and 3 deletions
@@ -62,7 +62,7 @@ class ListBookingJobLogic extends AbstractControllerLogic
$userInfo
);
ListBookingsJob::dispatch($listGenericJobObject);
ListBookingsJob::dispatch($listGenericJobObject)->onQueue(env('SQS_QUEUENAME_PREFIX', '').'high_priority');
$result = [];
$result['job_id'] = $jobId;
@@ -63,7 +63,7 @@ class ListDocumentJobLogic extends AbstractControllerLogic
$userInfo
);
ListDocumentsJob::dispatch($listGenericJobObject);
ListDocumentsJob::dispatch($listGenericJobObject)->onQueue(env('SQS_QUEUENAME_PREFIX', '').'high_priority');
$result = [];
$result['job_id'] = $jobId;
@@ -61,7 +61,7 @@ class ListTransactionsJobLogic extends AbstractControllerLogic
$userInfo
);
ListTransactionsJob::dispatch($listGenericJobObject);
ListTransactionsJob::dispatch($listGenericJobObject)->onQueue(env('SQS_QUEUENAME_PREFIX', '').'high_priority');
$result = [];
$result['job_id'] = $jobId;
+9
View File
@@ -6,6 +6,9 @@ environments:
domain: production.exchange.izyim.com
memory: 1024
cli-memory: 512
queues:
- exchange-default-production
- exchange-high_priority-production
database: cief-rds-mysql
storage: exchange-2.0-production
# gateway-version: 2
@@ -30,6 +33,9 @@ environments:
domain: staging.exchange.izyim.com
memory: 1024
cli-memory: 512
queues:
- exchange-default-staging
- exchange-high_priority-staging
database: cief-rds-mysql
storage: exchange-2.0-staging
runtime: 'docker'
@@ -45,6 +51,9 @@ environments:
domain: dev.exchange.izyim.com
memory: 1024
cli-memory: 512
queues:
- exchange-default-development
- exchange-high_priority-development
database: cief-rds-mysql
storage: exchange-2.0-development
runtime: 'docker'