-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: needs updatebug report
Description
I'm trying to define a cronjob for a custom module but noticing some issues:
- It seems that third-party cronjobs are only scheduled once, when the cache is flushed. When the scheduled
./bin/magento cron:runruns every minute, the first time the cache is flushed it picks up all of the third-party module cronjobs, and runs them on the next execution. - After the first run, it doesn't seem as though these third-party modules are scheduled for a second run, ever. Until the cache is flushed again.
- Is this perhaps related to cron group? I noticed that items in the
defaultcron group never get rescheduled, but it seems that items in theindexcron group do (at least items from core code). - Disabling the cache doesn't help.
- Even if cache is disabled, the third-party modules never get registered.
- Even if cache is disabled, iff a
./bin/magento cache:flushis run, all of the items in thedefaultgroup do get scheduled. This leads me to believe that either that cache is not getting properly disabled, there is a bug in the caching system, and/or there is some sort of intricacy with how the cache actually works.
- Is this perhaps related to cron group? I noticed that items in the
- What is the purpose of running
php update/cron.phpif we are already running./bin/magento cron:run, and what is the difference between the two? I'm pulling info from devdocs http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html#config-cli-cron-bkg
Metadata
Metadata
Assignees
Labels
Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: needs updatebug report