setting retries and timeouts for jobs'

This commit is contained in:
2021-05-18 22:08:04 +09:00
parent f5531ac121
commit e248cd036c
16 changed files with 219 additions and 1 deletions
@@ -22,6 +22,20 @@ class FetchAllianceStructures implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Timeout in seconds
*
* @var int
*/
public $timeout = 3600;
/**
* Number of job retries
*
* @var int
*/
public $tries = 3;
/**
* Create a new job instance.
*
@@ -31,6 +45,7 @@ class FetchAllianceStructures implements ShouldQueue
{
//Set the connection for the job
$this->connection = 'redis';
}
/**