Skip to content

Commit a746752

Browse files
Add area code param to consumer workers (#322)
* add area code * Add doc Co-authored-by: Mariusz Jóźwiak <[email protected]>
1 parent 1da18c2 commit a746752

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

roles/cs.magento-configure/defaults/main/general.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ magento_default_consumer_workers:
7373
# process_count: 1
7474
# min_magento_version: 2.4.3 # inclusive Optional
7575
# max_magento_version: 2.5.0 # exclusive Optional
76+
# area_code: # Optional
7677
# Containerized tasks to be executed post content deploy
7778
magento_scd_containerized_tasks: []
7879

roles/cs.magento-configure/templates/magento_consumer_worker.supervisor.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[program:magento-consumer-{{ item.consumer }}]
2-
command=php {{ mageops_app_web_dir }}/current/bin/magento queue:consumers:start {{ item.consumer }} --batch-size={{ item.batch_size | default(100) }}
2+
command=php {{ mageops_app_web_dir }}/current/bin/magento queue:consumers:start {{ item.consumer }} {% if item.area_code is defined -%} --area-code={{ item.area_code }} {%- endif %} --batch-size={{ item.batch_size | default(100) }}
33
directory={{ mageops_app_web_dir }}/current
44

55
process_name = magento-consumer-{{ item.consumer }}-%(process_num)s

0 commit comments

Comments
 (0)