Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Run cron command twice #418

Closed
bh-ref opened this issue Nov 19, 2015 · 2 comments
Closed

Run cron command twice #418

bh-ref opened this issue Nov 19, 2015 · 2 comments

Comments

@bh-ref
Copy link
Contributor

bh-ref commented Nov 19, 2015

http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html contains a hint that cron should run twice. This is at least true for the command php bin/magento cron:run.

Two questions:

  1. Is this also true for the other two mentioned commands:
    <your Magento install dir>/update/cron.php
    php bin/magento setup:cron:run
    Do they also have to run twice?

  2. Shouldn't the example code on that page thus actually list the command
    */1 * * * * php -c /etc/php5/cli/apache2 /var/www/html/magento2/bin/magento cron:run
    twice?

@ghost
Copy link

ghost commented Nov 19, 2015

Yes, cron must run twice in all cases. I'll check to make sure it's mentioned everywhere

For #2, no. cron run from a crontab runs every minute (in that example); thus, you must wait two minutes after every eligible change. But you shouldn't list a command in a crontab twice.

@ghost
Copy link

ghost commented Nov 19, 2015

I double-checked and this note is present in all the topics about cron. Closing. Please reopen if you disagree.

@ghost ghost closed this as completed Nov 19, 2015
magento-cicd2 pushed a commit that referenced this issue Oct 26, 2016
* additions to upgrade doc

* Cloud stuff: revise upgrade article, pull out logs and SSH into new articles

* Fix collapsible issue

* Fix collapsible issue

* Spell check complete

* Updates

* Ready for spell check

* Ready for spell check after updating SSH to environment topic
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant