-
Notifications
You must be signed in to change notification settings - Fork 9.4k
cronjob tasks defined within 'default' group are not properly running #2672
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
Comments
/update/cron.php is for the Component Manager and System Upgrade. It's what kicks off the update/upgrade processes. I imagine it also runs enable/disable and uninstall as well. /update/cron.php does not run indexers or other scheduled jobs like e-mail, site map, etc. |
I was noticing some similarly unexpected behavior with adding a new task to the default cron group. I tried to create a job that would run every minute, but on the default group it only executed around every 15 minutes, and I wasn't seeing pending jobs in the cron_schedule table like I was expecting. I ended up creating my own cron group with:
and a job with
I managed to get it to run every 5 minutes, but the whole scheduling bit has me confused, because I'm not seeing it schedule jobs ahead for the next 19 minutes. |
@xcomSteveJohnson this shouldn't be labeled a question, it's a bug. a pretty high priority one for that matter :) |
@markoshust They don't let me label anything... |
Sorry -- I meant to reference @okorshenko, not you :) |
I am experiencing the same issue using Magento 2.0.1 CE |
@werdlv could be because this ticket is still in 'open' status and not resolved ;) |
We have created MAGETWO-48243 to track a fix for this. |
@markoshust
|
@markoshust any response to @eddielau's comment? |
@markoshust closing as non-responsive. |
Magento 2.1.1 - custom cron job for.third party module was scheduled when i run ´cron:run´ two times. After first it was only some magento default. Executing was possible after third command run. It was set for every minute. |
@bartek9007 I think there may be some issues with how tasks are scheduled ahead, since I'm only seeing it schedule ahead one iteration of a task that it should be scheduling ahead many more. |
…hql-ce-83 Engcom 1833 magento graphql ce 83
I'm trying to define a cronjob for a custom module but noticing some issues:
./bin/magento cron:run
runs 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.default
cron group never get rescheduled, but it seems that items in theindex
cron group do (at least items from core code)../bin/magento cache:flush
is run, all of the items in thedefault
group 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.php update/cron.php
if 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-bkgThe text was updated successfully, but these errors were encountered: