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
|
$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;
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user