Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] Fix for some functions using a hard coded timeout of 30 #157

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

lhelwingkh
Copy link
Contributor

Please see #156 for a description of the issue.

@nunomaduro nunomaduro changed the title Fix for some functions using a hard coded timeout of 30 [3.x] Fix for some functions using a hard coded timeout of 30 May 15, 2023
@driesvints driesvints requested a review from jbrooksuk July 7, 2023 07:35
@@ -71,7 +71,7 @@ public function restartDaemon($serverId, $daemonId, $wait = true)
$this->post("servers/$serverId/daemons/$daemonId/restart");

if ($wait) {
$this->retry(30, function () use ($serverId, $daemonId) {
$this->retry($this->getTimeout(), function () use ($serverId, $daemonId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, but note that the restart is done asynchronously by Forge.

@@ -89,7 +89,7 @@ public function restartWorker($serverId, $siteId, $workerId, $wait = true)
$this->post("servers/$serverId/sites/$siteId/workers/$workerId/restart");

if ($wait) {
$this->retry(30, function () use ($serverId, $siteId, $workerId) {
$this->retry($this->getTimeout(), function () use ($serverId, $siteId, $workerId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This restart is also done asynchronously by Forge.

@driesvints driesvints merged commit a14bd4b into laravel:3.x Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants