From 66957c34e1e742f45abfa8dbdf9f97da815f60f2 Mon Sep 17 00:00:00 2001 From: Josh Salway Date: Mon, 20 Apr 2026 11:25:04 +1000 Subject: [PATCH] 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. --- src/Jobs/ClearPendingTenants.php | 2 ++ src/Jobs/CreateDatabase.php | 2 ++ src/Jobs/CreatePendingTenants.php | 2 ++ src/Jobs/CreateStorageSymlinks.php | 2 ++ src/Jobs/DeleteDatabase.php | 2 ++ src/Jobs/MigrateDatabase.php | 2 ++ src/Jobs/RemoveStorageSymlinks.php | 2 ++ src/Jobs/SeedDatabase.php | 2 ++ 8 files changed, 16 insertions(+) diff --git a/src/Jobs/ClearPendingTenants.php b/src/Jobs/ClearPendingTenants.php index d34d228d..bdf556bf 100644 --- a/src/Jobs/ClearPendingTenants.php +++ b/src/Jobs/ClearPendingTenants.php @@ -15,8 +15,10 @@ class ClearPendingTenants implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public function handle(): void diff --git a/src/Jobs/CreateDatabase.php b/src/Jobs/CreateDatabase.php index 13021d37..fa9b537c 100644 --- a/src/Jobs/CreateDatabase.php +++ b/src/Jobs/CreateDatabase.php @@ -21,8 +21,10 @@ class CreateDatabase implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public static bool $ignoreExisting = false; diff --git a/src/Jobs/CreatePendingTenants.php b/src/Jobs/CreatePendingTenants.php index 637fe5b8..349d9306 100644 --- a/src/Jobs/CreatePendingTenants.php +++ b/src/Jobs/CreatePendingTenants.php @@ -15,8 +15,10 @@ class CreatePendingTenants implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public function handle(): void diff --git a/src/Jobs/CreateStorageSymlinks.php b/src/Jobs/CreateStorageSymlinks.php index f7d77ff4..14f5b544 100644 --- a/src/Jobs/CreateStorageSymlinks.php +++ b/src/Jobs/CreateStorageSymlinks.php @@ -16,8 +16,10 @@ class CreateStorageSymlinks implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public function __construct( diff --git a/src/Jobs/DeleteDatabase.php b/src/Jobs/DeleteDatabase.php index b5397f99..ce479f06 100644 --- a/src/Jobs/DeleteDatabase.php +++ b/src/Jobs/DeleteDatabase.php @@ -18,8 +18,10 @@ class DeleteDatabase implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public function __construct( diff --git a/src/Jobs/MigrateDatabase.php b/src/Jobs/MigrateDatabase.php index df45e59b..3d6a60d4 100644 --- a/src/Jobs/MigrateDatabase.php +++ b/src/Jobs/MigrateDatabase.php @@ -17,8 +17,10 @@ class MigrateDatabase implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public function __construct( diff --git a/src/Jobs/RemoveStorageSymlinks.php b/src/Jobs/RemoveStorageSymlinks.php index fda86e59..a9d2a408 100644 --- a/src/Jobs/RemoveStorageSymlinks.php +++ b/src/Jobs/RemoveStorageSymlinks.php @@ -16,8 +16,10 @@ class RemoveStorageSymlinks implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public Tenant $tenant; diff --git a/src/Jobs/SeedDatabase.php b/src/Jobs/SeedDatabase.php index 90d926cd..279eeae3 100644 --- a/src/Jobs/SeedDatabase.php +++ b/src/Jobs/SeedDatabase.php @@ -17,8 +17,10 @@ class SeedDatabase implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + /** The maximum number of times the job may be attempted. */ public int $tries = 3; + /** Delay in seconds between retries. */ public array $backoff = [30, 60, 120]; public function __construct(