Skip to content

Instantly share code, notes, and snippets.

@meker12
Last active August 27, 2019 15:13
Show Gist options
  • Save meker12/9c5d9e1f5d4ce1ecbe8daa6f2ef5c8e7 to your computer and use it in GitHub Desktop.
Save meker12/9c5d9e1f5d4ce1ecbe8daa6f2ef5c8e7 to your computer and use it in GitHub Desktop.
#######################################################################################################################
# CONSUMERS_WAIT_FOR_MAX_MESSAGES - use this variable to configure how consumers process messages from the message #
# queue #
# Magento Version: 2.2.0 and later #
# Default value: false #
# Possible values: #
# false — consumers process available messages in the queue, close the TCP connection, and terminate.#
# Consumers do not wait for additional messages to enter the queue, even if the number of #
# processed messages is less than the `max_messages` value specified in the #
# CRON_CONSUMERS_RUNNER deploy variable. #
# true — consumers continue to process messages from the message queue until reaching the maximum #
# number of messages (`max_messages`) specified in the CRON_CONSUMERS_RUNNER deploy variable #
# before closing the TCP connection and terminating the consumer process. If the queue #
# empties before reaching `max_messages` the consumer waits for more messages to arrive. If #
# you use workers to run consumers instead of using a cron job, set this variable to true. #
# Stages: deploy #
# Example: #
# stage: #
# deploy: #
# CONSUMERS_WAIT_FOR_MAX_MESSAGES: true #
#######################################################################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment