Description
After updating to Symfony 4.4 and migrating to v2 of this gem I was reviewing deploy logs and noticed that the symfony:cache:warmup
task was running the SSH command itself multiple times per server. I deploy to 9 servers, and the command looks like it's running 81 times, 9 per server.
The symfony_console
call in that task is wrapped in an on
:
https://github.com/capistrano/symfony/blob/master/lib/capistrano/tasks/symfony.rake#L31
Then the symfony_console
function itself contains another on
:
https://github.com/capistrano/symfony/blob/master/lib/capistrano/dsl/symfony.rb#L42
So it looks like it's saying "on each server, run the cache warmup command on each server". Am I misunderstanding this and I have a different issue? This explanation seems to fit the results I'm seeing.