redis updates

This commit is contained in:
2021-03-30 01:36:11 +09:00
parent ecd7b08b27
commit 2d7e1ec7bf
9 changed files with 74 additions and 3 deletions

View File

@@ -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.
*

View File

@@ -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

View File

@@ -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

View File

@@ -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
*

View File

@@ -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
*

View File

@@ -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.
*

View File

@@ -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
*

View File

@@ -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:`,
]
],
];

View File

@@ -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,
],
],
/*