diff --git a/src/Jobs/ClearPendingTenants.php b/src/Jobs/ClearPendingTenants.php index d353bd5e..d34d228d 100644 --- a/src/Jobs/ClearPendingTenants.php +++ b/src/Jobs/ClearPendingTenants.php @@ -15,6 +15,10 @@ class ClearPendingTenants implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable; + public int $tries = 3; + + public array $backoff = [30, 60, 120]; + public function handle(): void { Artisan::call(ClearPendingTenantsCommand::class); diff --git a/src/Jobs/CreateDatabase.php b/src/Jobs/CreateDatabase.php index 2d4e2240..13021d37 100644 --- a/src/Jobs/CreateDatabase.php +++ b/src/Jobs/CreateDatabase.php @@ -23,6 +23,8 @@ class CreateDatabase implements ShouldQueue public int $tries = 3; + public array $backoff = [30, 60, 120]; + public static bool $ignoreExisting = false; public function __construct( diff --git a/src/Jobs/CreatePendingTenants.php b/src/Jobs/CreatePendingTenants.php index 0163ac3a..637fe5b8 100644 --- a/src/Jobs/CreatePendingTenants.php +++ b/src/Jobs/CreatePendingTenants.php @@ -15,6 +15,10 @@ class CreatePendingTenants implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable; + public int $tries = 3; + + public array $backoff = [30, 60, 120]; + public function handle(): void { Artisan::call(CreatePendingTenantsCommand::class); diff --git a/src/Jobs/CreateStorageSymlinks.php b/src/Jobs/CreateStorageSymlinks.php index 4493de09..f7d77ff4 100644 --- a/src/Jobs/CreateStorageSymlinks.php +++ b/src/Jobs/CreateStorageSymlinks.php @@ -16,6 +16,10 @@ class CreateStorageSymlinks implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + public int $tries = 3; + + public array $backoff = [30, 60, 120]; + public function __construct( public Tenant $tenant, ) {} diff --git a/src/Jobs/DeleteDatabase.php b/src/Jobs/DeleteDatabase.php index e364d7cb..b5397f99 100644 --- a/src/Jobs/DeleteDatabase.php +++ b/src/Jobs/DeleteDatabase.php @@ -20,6 +20,8 @@ class DeleteDatabase implements ShouldQueue public int $tries = 3; + public array $backoff = [30, 60, 120]; + public function __construct( protected TenantWithDatabase&Model $tenant, ) {} diff --git a/src/Jobs/MigrateDatabase.php b/src/Jobs/MigrateDatabase.php index 358c4678..df45e59b 100644 --- a/src/Jobs/MigrateDatabase.php +++ b/src/Jobs/MigrateDatabase.php @@ -19,6 +19,8 @@ class MigrateDatabase implements ShouldQueue public int $tries = 3; + public array $backoff = [30, 60, 120]; + public function __construct( protected TenantWithDatabase&Model $tenant, ) {} diff --git a/src/Jobs/RemoveStorageSymlinks.php b/src/Jobs/RemoveStorageSymlinks.php index 8579175f..fda86e59 100644 --- a/src/Jobs/RemoveStorageSymlinks.php +++ b/src/Jobs/RemoveStorageSymlinks.php @@ -16,6 +16,10 @@ class RemoveStorageSymlinks implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + public int $tries = 3; + + public array $backoff = [30, 60, 120]; + public Tenant $tenant; /** diff --git a/src/Jobs/SeedDatabase.php b/src/Jobs/SeedDatabase.php index f0c49568..90d926cd 100644 --- a/src/Jobs/SeedDatabase.php +++ b/src/Jobs/SeedDatabase.php @@ -19,6 +19,8 @@ class SeedDatabase implements ShouldQueue public int $tries = 3; + public array $backoff = [30, 60, 120]; + public function __construct( protected TenantWithDatabase&Model $tenant, ) {}