-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAGECLOUD-1332: Add ability to configure cron_consumers_runner via an environment variable #102
MAGECLOUD-1332: Add ability to configure cron_consumers_runner via an environment variable #102
Conversation
… environment variable
… environment variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lack of descriptions especially for CronConsummerRunner
$config = $this->configReader->read(); | ||
$cronConsumersRunnerConfig = new Repository($this->environment->getCronConsumersRunner()); | ||
|
||
$config['cron_consumers_runner'] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if env.php already has configurations for this section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We set configuration only from ENV variable.
$cronConsumersRunnerConfig = new Repository($this->environment->getCronConsumersRunner()); | ||
|
||
$config['cron_consumers_runner'] = [ | ||
'cron_run' => $cronConsumersRunnerConfig->get('cron_run') === 'true', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if CRON_CONSUMERS_RUNNER variable does not exist you don't need to set these values, because in this case you need to use Magento default values (they can be changed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We disable this consumers runner by default on the Cloud.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. Descriptions should be added later
QA approved |
Description
Magento allows to configure cron_consummers_runner via app/etc/env.php
We added opportunity to configure cron job cron_consummers_runner via an environment variable CRON_CONSUMERS_RUNNER.
Fixed Issues (if relevant)
https://magento2.atlassian.net/browse/MAGECLOUD-1332
Zephyr Tests
https://jira.corp.magento.com/browse/MAGETWO-84602
Contribution checklist