MAD-I-T / magento-actions

Github deployment actions for Magento 2
MIT License
101 stars 36 forks source link

kill and clear of old consumers #57

Open seyuf opened 4 months ago

seyuf commented 4 months ago
  1. use bin/magento queue:consumers:restart when setup upgrade not run. Through poison pill.
  2. and kill old processes with pgrep -u "$(whoami)" -f "[q]ueue:consumers:start" | tee /dev/stderr | awk '{print $1}' | xargs -r kill
seyuf commented 4 months ago

Limit filter to current release path by adding previous_release path to pgrep regex. set('previous_release', "{{deploy_path}}/releases/{$releasesList[1]}"); Useful when multiple magento instances run on the same server.