deployer icon indicating copy to clipboard operation
deployer copied to clipboard

CLI hangs when calling task with incompatible host select

Open SimJoSt opened this issue 2 years ago • 1 comments

  • Deployer version: https://github.com/deployphp/deployer/releases/tag/v7.3.1
  • Deployment OS: macOS

We noticed that tasks that have been restricted to specific hosts with select() cause issues when run directly via the cli without a compatible host. For example, running the following command with the following task, will cause the cli to hang forever:

$ ./vendors/bin/dep single env=prod
task('single', function(){
    echo 'single';
})->select('env=dev');

If the task that is restricted to a host is invoked from a group task, this issue doesn't occur:

task('group', [
    'single'
]);

task('single', function(){
    echo 'single';
})->select('env=dev');

In this scenario, the cli ends the run without an issue.

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

SimJoSt avatar Sep 22 '23 17:09 SimJoSt

Hmmm, intresting.

antonmedv avatar Sep 22 '23 19:09 antonmedv