Skip to content

Disabling default_timeout for run/runLocally has no effect #3447

@alexgit2k

Description

@alexgit2k

For disabling the timeout for run/runLocally default_timeout should be set to null: https://deployer.org/docs/7.x/recipe/common#default_timeout

Example:

<?php
namespace Deployer;

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);

Occurrences:

// Set to `null` to disable timeout.

* @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.
Fund with Polar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions