mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Vue Polling - Second high priority queue through database
This commit is contained in:
@@ -62,7 +62,7 @@ class ListBookingJobLogic extends AbstractControllerLogic
|
||||
$userInfo
|
||||
);
|
||||
|
||||
ListBookingsJob::dispatch($listGenericJobObject);
|
||||
ListBookingsJob::dispatch($listGenericJobObject)->onQueue('high_priority');
|
||||
|
||||
$result = [];
|
||||
$result['job_id'] = $jobId;
|
||||
|
||||
@@ -63,7 +63,7 @@ class ListDocumentJobLogic extends AbstractControllerLogic
|
||||
$userInfo
|
||||
);
|
||||
|
||||
ListDocumentsJob::dispatch($listGenericJobObject);
|
||||
ListDocumentsJob::dispatch($listGenericJobObject)->onQueue('high_priority');
|
||||
|
||||
$result = [];
|
||||
$result['job_id'] = $jobId;
|
||||
|
||||
@@ -61,7 +61,7 @@ class ListTransactionsJobLogic extends AbstractControllerLogic
|
||||
$userInfo
|
||||
);
|
||||
|
||||
ListTransactionsJob::dispatch($listGenericJobObject);
|
||||
ListTransactionsJob::dispatch($listGenericJobObject)->onQueue('high_priority');
|
||||
|
||||
$result = [];
|
||||
$result['job_id'] = $jobId;
|
||||
|
||||
@@ -34,6 +34,13 @@ return [
|
||||
'driver' => 'sync',
|
||||
],
|
||||
|
||||
'high_priority' => [
|
||||
'driver' => 'database',
|
||||
'table' => 'jobs',
|
||||
'queue' => 'high_priority',
|
||||
'retry_after' => 90,
|
||||
],
|
||||
|
||||
'database' => [
|
||||
'driver' => 'database',
|
||||
'table' => 'jobs',
|
||||
|
||||
Reference in New Issue
Block a user