Skip to content

Instantly share code, notes, and snippets.

@meker12
Created August 27, 2019 14:52
Show Gist options
  • Save meker12/a5bd648efa1926fea5640a7a1d3aebd7 to your computer and use it in GitHub Desktop.
Save meker12/a5bd648efa1926fea5640a7a1d3aebd7 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. #
# value. #
# true — a consumer continues 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 consumer process. If #
# you use workers to run consumers instead of using a cron job, set the #
# CONSUMERS_WAIT_FOR_MAX_MESSAGES 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