Vue Polling - Second high priority queue through database

This commit is contained in:
Dillon Ngo
2024-03-14 16:29:26 +08:00
parent be65829dd5
commit ffd338e287
4 changed files with 10 additions and 3 deletions
@@ -62,7 +62,7 @@ class ListBookingJobLogic extends AbstractControllerLogic
$userInfo $userInfo
); );
ListBookingsJob::dispatch($listGenericJobObject); ListBookingsJob::dispatch($listGenericJobObject)->onQueue('high_priority');
$result = []; $result = [];
$result['job_id'] = $jobId; $result['job_id'] = $jobId;
@@ -63,7 +63,7 @@ class ListDocumentJobLogic extends AbstractControllerLogic
$userInfo $userInfo
); );
ListDocumentsJob::dispatch($listGenericJobObject); ListDocumentsJob::dispatch($listGenericJobObject)->onQueue('high_priority');
$result = []; $result = [];
$result['job_id'] = $jobId; $result['job_id'] = $jobId;
@@ -61,7 +61,7 @@ class ListTransactionsJobLogic extends AbstractControllerLogic
$userInfo $userInfo
); );
ListTransactionsJob::dispatch($listGenericJobObject); ListTransactionsJob::dispatch($listGenericJobObject)->onQueue('high_priority');
$result = []; $result = [];
$result['job_id'] = $jobId; $result['job_id'] = $jobId;
+7
View File
@@ -34,6 +34,13 @@ return [
'driver' => 'sync', 'driver' => 'sync',
], ],
'high_priority' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'high_priority',
'retry_after' => 90,
],
'database' => [ 'database' => [
'driver' => 'database', 'driver' => 'database',
'table' => 'jobs', 'table' => 'jobs',