You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?phpnamespaceDeployer;
set('default_timeout', null);
localhost('test');
task('sleep5', function () {
run('sleep 5');
});
task('sleep10', function () {
run('sleep 10');
});
task('sleep500', function () {
run('sleep 500');
});
But dep sleep500 still quits at the default timeout of 300 seconds.
However, it looks like setting it to 0 instead of null is disabling the timeout: set('default_timeout', 0);
* @param int|null $timeout Sets the process timeout (max. runtime). The timeout in seconds (default: 300 sec; see {{default_timeout}}, `null` to disable).
|`$timeout`|`int` or `null`| Sets the process timeout (max. runtime). The timeout in seconds (default: 300 sec; see {{default_timeout}}, `null` to disable). |
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
For disabling the timeout for run/runLocally default_timeout should be set to
null: https://deployer.org/docs/7.x/recipe/common#default_timeoutExample:
But
dep sleep500still quits at the default timeout of 300 seconds.However, it looks like setting it to
0instead ofnullis disabling the timeout:set('default_timeout', 0);Occurrences:
deployer/recipe/common.php
Line 53 in a14383b
deployer/src/functions.php
Line 349 in a14383b
deployer/docs/api.md
Line 230 in a14383b
Upvote & Fund