Skip to content

Commit

Permalink
Merge pull request #17 from sitewards/2.5.0-dev
Browse files Browse the repository at this point in the history
2.5.0 dev
  • Loading branch information
skalenji authored Mar 17, 2021
2 parents 087c60d + ba33801 commit 53b4748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ magento_upgrade_commands:
## See https://magento.stackexchange.com/questions/285385/magento-2-3-2-ce-and-cron-jobs-flock-and-rabbitmq/285386#285386
magento_run_message_queue_consumers_separately: false

## in case you don't want message queue consumers to wait for messages - change this to false
## Changing it to false reduces server memory consuption but increases the waiting time for messages to be processed.
magento_queue_consumers_wait_for_messages: true

magento_queue_consumers_cron_template: "/usr/bin/php {{ magento_app_root }}/bin/magento queue:consumers:start {{ item.name }}"

## Deletes all installed deployable magento packages except the
Expand Down
5 changes: 3 additions & 2 deletions templates/etc/env.php.j2
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ return array (
array (
'date' => '{{ magento_install_date }}',
),
{% if magento_queue_amqp is defined %}
'queue' =>
array (
'consumers_wait_for_messages' => {{ magento_queue_consumers_wait_for_messages }},
{% if magento_queue_amqp is defined %}
'amqp' =>
array (
'host' => '{{ magento_queue_amqp.host }}',
Expand All @@ -131,8 +132,8 @@ return array (
'virtualhost' => '{{ magento_queue_amqp.virtualhost }}',
'ssl' => '{{ magento_queue_amqp.ssl }}',
),
{% endif %}
),
{% endif %}
{% if magento_run_message_queue_consumers_separately %}
'cron_consumers_runner' => array(
'cron_run' => false
Expand Down

0 comments on commit 53b4748

Please sign in to comment.