mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 16:04:05 +00:00
Setup priority queue with AWS SQS (Sync from Shipping Portal)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user