redis updates
This commit is contained in:
@@ -16,6 +16,11 @@ class ItemPricesUpdateJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The queue connection that should handle the job
|
||||
*/
|
||||
public $connection = 'queue';
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*
|
||||
|
||||
@@ -29,6 +29,11 @@ class ProcessSendEveMailJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The queue connection that should handle the job
|
||||
*/
|
||||
public $connection = 'queue';
|
||||
|
||||
/**
|
||||
* Retries
|
||||
* With new rate limiting, we need a retry basis versus timeout basis
|
||||
|
||||
@@ -28,6 +28,11 @@ class ProcessSendEveMailJobRL implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The queue connection that should handle the job
|
||||
*/
|
||||
public $connection = 'queue';
|
||||
|
||||
/**
|
||||
* Timeout in seconds
|
||||
* With new rate limiting, we shouldn't use this timeout
|
||||
|
||||
@@ -31,6 +31,11 @@ class FetchMiningTaxesLedgersJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The queue connection that should handle the job
|
||||
*/
|
||||
public $connection = 'queue';
|
||||
|
||||
/**
|
||||
* Timeout in seconds
|
||||
*
|
||||
|
||||
@@ -23,6 +23,11 @@ class ProcessMiningTaxesLedgersJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The queue connection that should handle the job
|
||||
*/
|
||||
public $connection = 'queue';
|
||||
|
||||
/**
|
||||
* Timeout in seconds
|
||||
*
|
||||
|
||||
@@ -23,6 +23,11 @@ class ProcessMiningTaxesPaymentsJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The queue connection that should handle the job
|
||||
*/
|
||||
public $connection = 'queue';
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*
|
||||
|
||||
@@ -24,6 +24,11 @@ class EndSupplyChainContractJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The queue connection that should handle the job
|
||||
*/
|
||||
public $connection = 'queue';
|
||||
|
||||
/**
|
||||
* Timeout in seconds
|
||||
*
|
||||
|
||||
@@ -106,16 +106,34 @@ return [
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'password' => env('REDIS_PASSWORD', null),
|
||||
'port' => env('REDIS_PORT', 6379),
|
||||
'database' => env('REDIS_DB', 8),
|
||||
'database' => env('REDIS_DB', 0),
|
||||
`prefix` => `d:`,
|
||||
],
|
||||
|
||||
'cache' => [
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'password' => env('REDIS_PASSWORD', null),
|
||||
'port' => env('REDIS_PORT', 6379),
|
||||
'database' => env('REDIS_CACHE_DB', 9),
|
||||
'database' => env('REDIS_CACHE_DB', 0),
|
||||
`prefix` => `c:`,
|
||||
],
|
||||
|
||||
'queue' => [
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'password' => env('REDIS_PASSWORD', null),
|
||||
'port' => env('REDIS_PORT', 6379),
|
||||
'database' => env('REDIS_QUEUE_DB', 0),
|
||||
`prefix` => `q:`,
|
||||
],
|
||||
|
||||
'session' => [
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'password' => env('REDIS_PASSWORD', null),
|
||||
'port' => env('REDIS_PORT', 6379),
|
||||
'database' => env('REDIS_SESSION_DB', 0),
|
||||
`prefix` => `myapp:s:`,
|
||||
]
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
@@ -13,7 +13,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('QUEUE_CONNECTION', 'redis'),
|
||||
'default' => env('QUEUE_CONNECTION', 'sync'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -65,6 +65,24 @@ return [
|
||||
'block_for' => null,
|
||||
],
|
||||
|
||||
'job' => [
|
||||
'driver' => 'redis',
|
||||
'connection' => 'queue',
|
||||
'queue' => '{job}',
|
||||
'retry_after' => 90,
|
||||
'block_for' => null,
|
||||
],
|
||||
|
||||
'app' => [
|
||||
'driver' => 'redis',
|
||||
'connection' => 'queue',
|
||||
'queue' => '{app}',
|
||||
'rery_after' => 90,
|
||||
'block_for' => null,
|
||||
],
|
||||
|
||||
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user