Devdocs: Cloud: Please add some more information about the CRON_CONSUMERS_RUNNER variable

Created on 24 Jan 2018  路  9Comments  路  Source: magento/devdocs

We were having an issue that after deploying to an integration environment, the running message queues were getting killed and not restarted after the deploy had finished.
After a lengthy discussion with the support, they finally gave us a solution. The solution is to add a variable CRON_CONSUMERS_RUNNER with the contents {"cron_run":"true"} as a JSON value to every environment.

After setting this variable, the deploy process on the cloud will update the app/etc/env.php file (section cron_consumers_runner) and make sure the cronjobs trigger the spawning of message queue consumers.

I think it would make sense to also add this to the documentation, otherwise it's very unclear as to why message queues aren't working properly.

(This might also apply to staging & production environment, but I haven't really tested those with message queues very thoroughly yet)

Thanks!

(Magento cloud support tickets 10938 & 12268)

Most helpful comment

I've heard similar feedback about the collapsed structure and we plan to address that soon with a simple style update. As always, thank you for the thoughtful feedback! It's extremely helpful.

All 9 comments

Thanks @hostep. This is the next task on my list after I finish updating some release documentation. I should be able to publish something by this Friday. Tracking internally with MAGECLOUD-1417.

@hostep, I updated the docs with info about the variable. Let us know if you have any suggestions.

http://devdocs.magento.com/guides/v2.2/cloud/env/working-with-variables.html#manage-message-queues

Thanks @jeff-matthews, looks good at first sight 馃憤

Although, I would put it somewhere else, under the 'Working with variables' is not really the right place for it I believe.
Maybe create a new section around Message Queues in the Cloud TOC somewhere, it might make it easier to find if you are researching the message queues topic I think. Or maybe as a topic in Troubleshooting: 'Why aren't the Message Queues being picked up by the cron system?' or something like that.

I myself wouldn't start looking in the 'Working with variables' section to be honest...

That's great feedback @hostep, thanks! I think adding it as a troubleshooting topic makes sense.

We're in the process of redesigning the cloud guide information architecture, so we'll keep this in mind. I'm curious, though, do you primarily use the navigation when looking for specific information like this or do you use search?

Mostly the search, sometimes the navigation.
I would use the navigation more often if all topics were expanded, because then I could use cmd/ctrl+f in my browser to see if a topic I'm interested in is listed in the navigation. The fact that all those topics are collapsed by default annoys me a little bit to be honest :)

And if all else fails, I'm going to google and search for something like this:
site:devdocs.magento.com myquery

I've heard similar feedback about the collapsed structure and we plan to address that soon with a simple style update. As always, thank you for the thoughtful feedback! It's extremely helpful.

@dmrachkovskyi, I think this would be a good candidate for the KB.

Added a Message queues topic to the Troubleshooting section.

Excellent, thanks @jeff-matthews!

Was this page helpful?
0 / 5 - 0 ratings