Setup priority queue with AWS SQS

This commit is contained in:
Dillon Ngo
2024-03-21 13:21:04 +08:00
parent 4ce92aca27
commit ac1d63a2cb
3 changed files with 5 additions and 5 deletions
@@ -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
View File
@@ -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,
],
+2 -2
View File
@@ -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