Skip to content

Magento2: Extract queue consumers stop into its own task - #4273

Open
claudio-ferraro wants to merge 1 commit into
deployphp:masterfrom
claudio-ferraro:magento2-consumers-stop
Open

claudio-ferraro wants to merge 1 commit into
deployphp:masterfrom
claudio-ferraro:magento2-consumers-stop

Conversation

@claudio-ferraro

Copy link
Copy Markdown
  • Bug fix #…?
  • New feature?
  • BC breaks?
  • Tests added? No, the magento2 recipe has no tests.
  • Docs added?

magento:cron:stop kills running cron jobs and queue consumers in one command. This PR moves the consumers part into its own task, magento:queue:consumers:stop. magento:cron:stop invokes it, so its behaviour does not change.

The new task is also useful on its own. A Magento queue consumer only stops after max_messages messages. On a quiet queue that can take weeks, and until then the consumer runs the code of the previous release. It also keeps the lock on its name, so cron can't start the consumer from the new release. With the new task, a deploy can stop the consumers after the symlink, and cron starts them again from the new release:

after('deploy:symlink', 'magento:queue:consumers:stop');

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant