From a5b696e8bf2ecf92c1aabbc6b50e61d9366b0261 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Dec 2025 20:26:29 +0000 Subject: [PATCH] Increase MySQL wait timeout to 120 seconds in migrate commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/RSpade/Commands/Migrate/Migrate_Begin_Command.php | 4 ++-- app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php b/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php index 481f65b7d..4a1498802 100755 --- a/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php +++ b/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php @@ -161,7 +161,7 @@ class Migrate_Begin_Command extends Command */ protected function wait_for_mysql_ready(): void { - $max_attempts = 30; + $max_attempts = 120; $attempt = 0; while ($attempt < $max_attempts) { @@ -176,6 +176,6 @@ class Migrate_Begin_Command extends Command $attempt++; } - throw new \Exception('MySQL did not start within 30 seconds'); + throw new \Exception('MySQL did not start within 120 seconds'); } } \ No newline at end of file diff --git a/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php b/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php index 51e84d8fa..7ab1d2648 100755 --- a/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php +++ b/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php @@ -106,7 +106,7 @@ class Migrate_Rollback_Command extends Command */ protected function wait_for_mysql_ready(): void { - $max_attempts = 30; + $max_attempts = 120; $attempt = 0; while ($attempt < $max_attempts) { @@ -121,6 +121,6 @@ class Migrate_Rollback_Command extends Command $attempt++; } - throw new \Exception('MySQL did not start within 30 seconds'); + throw new \Exception('MySQL did not start within 120 seconds'); } } \ No newline at end of file