1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-07 01:24:04 +00:00

Add docblocks to $tries and $backoff properties

Satisfies the CodeRabbit docstring coverage check by documenting the
two retry-policy properties on all 8 queued jobs. No behavioural change.
This commit is contained in:
Josh Salway 2026-04-20 11:25:04 +10:00
parent 39f01e2b54
commit 66957c34e1
8 changed files with 16 additions and 0 deletions

View file

@ -15,8 +15,10 @@ class ClearPendingTenants implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable; use Dispatchable, InteractsWithQueue, Queueable;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public function handle(): void public function handle(): void

View file

@ -21,8 +21,10 @@ class CreateDatabase implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public static bool $ignoreExisting = false; public static bool $ignoreExisting = false;

View file

@ -15,8 +15,10 @@ class CreatePendingTenants implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable; use Dispatchable, InteractsWithQueue, Queueable;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public function handle(): void public function handle(): void

View file

@ -16,8 +16,10 @@ class CreateStorageSymlinks implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public function __construct( public function __construct(

View file

@ -18,8 +18,10 @@ class DeleteDatabase implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public function __construct( public function __construct(

View file

@ -17,8 +17,10 @@ class MigrateDatabase implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public function __construct( public function __construct(

View file

@ -16,8 +16,10 @@ class RemoveStorageSymlinks implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public Tenant $tenant; public Tenant $tenant;

View file

@ -17,8 +17,10 @@ class SeedDatabase implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** The maximum number of times the job may be attempted. */
public int $tries = 3; public int $tries = 3;
/** Delay in seconds between retries. */
public array $backoff = [30, 60, 120]; public array $backoff = [30, 60, 120];
public function __construct( public function __construct(