-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
invoke() ignore before/after links #1427
Comments
Please note, this implementation of invoke() does the job: /**
* Run task
*
* @experimental
* @param string $task
*/
function invoke($task)
{
$hosts = [Context::get()->getHost()];
$tasks = Deployer::get()->scriptManager->getTasks($task, $hosts);
$executor = Deployer::get()->seriesExecutor;
$executor->run($tasks, $hosts);
} But I am sure neither about the way I get $hosts nor if using seriesExecutor by default is a good thing. |
So, What do you suggest? |
To review and test it. I just tweaked it by mimicking the TaskCommand, but I do not know the project well enough to know its implications and side-effects. If it seems fine to you, I can make a PR. |
A PR will be okay, as this feature still |
It is actually fixed in the master branch. I overlooked the PR #1364. It was for another issue but it also solves this one. I am sorry for wasting your time. |
Description
invoke() executes only the given task, ignoring before/after links. I have not checked failure/success tasks.
Steps to reproduce
Link task 'frontend:generate' to be executed before task 'deploy:assets:install' using before().
Define task 'build' to invoke() task 'deploy:assets:install'.
Run task 'build'.
'frontend:generate' is not executed.
Content of
deploy.php
Output log
The text was updated successfully, but these errors were encountered: