Skip to content

Commit

Permalink
feat: disable timeout for mysql commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Dec 4, 2024
1 parent 56e583d commit 6aa4d3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Classes/Service/DatabaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public function __construct()
public function mysql(mixed $input = null): Process
{
$command = ['mysql', ...$this->buildConnectionArguments()];
return new Process($command, null, null, $input);
$process = new Process($command, null, null, $input);
$process->setTimeout(null);
return $process;
}

/**
Expand All @@ -41,7 +43,9 @@ public function mysql(mixed $input = null): Process
public function mysqldump(array $args = []): Process
{
$command = ['mysqldump', ...$this->buildConnectionArguments(), ...$args];
return new Process($command);
$process = new Process($command);
$process->setTimeout(null);
return $process;
}

public function getDbName(): string
Expand Down

0 comments on commit 6aa4d3c

Please sign in to comment.