Increase MySQL wait timeout to 120 seconds in migrate commands

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-23 20:26:29 +00:00
parent b444f10c8e
commit a5b696e8bf
2 changed files with 4 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ class Migrate_Begin_Command extends Command
*/ */
protected function wait_for_mysql_ready(): void protected function wait_for_mysql_ready(): void
{ {
$max_attempts = 30; $max_attempts = 120;
$attempt = 0; $attempt = 0;
while ($attempt < $max_attempts) { while ($attempt < $max_attempts) {
@@ -176,6 +176,6 @@ class Migrate_Begin_Command extends Command
$attempt++; $attempt++;
} }
throw new \Exception('MySQL did not start within 30 seconds'); throw new \Exception('MySQL did not start within 120 seconds');
} }
} }

View File

@@ -106,7 +106,7 @@ class Migrate_Rollback_Command extends Command
*/ */
protected function wait_for_mysql_ready(): void protected function wait_for_mysql_ready(): void
{ {
$max_attempts = 30; $max_attempts = 120;
$attempt = 0; $attempt = 0;
while ($attempt < $max_attempts) { while ($attempt < $max_attempts) {
@@ -121,6 +121,6 @@ class Migrate_Rollback_Command extends Command
$attempt++; $attempt++;
} }
throw new \Exception('MySQL did not start within 30 seconds'); throw new \Exception('MySQL did not start within 120 seconds');
} }
} }