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:
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user