{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/2672","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/2672/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/2672/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/2672/events","html_url":"https://github.com/magento/magento2/issues/2672","id":121513271,"number":2672,"title":"cronjob tasks defined within 'default' group are not properly running ","user":{"login":"markoshust","id":437029,"avatar_url":"https://avatars.githubusercontent.com/u/437029?v=3","gravatar_id":"","url":"https://api.github.com/users/markoshust","html_url":"https://github.com/markoshust","followers_url":"https://api.github.com/users/markoshust/followers","following_url":"https://api.github.com/users/markoshust/following{/other_user}","gists_url":"https://api.github.com/users/markoshust/gists{/gist_id}","starred_url":"https://api.github.com/users/markoshust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markoshust/subscriptions","organizations_url":"https://api.github.com/users/markoshust/orgs","repos_url":"https://api.github.com/users/markoshust/repos","events_url":"https://api.github.com/users/markoshust/events{/privacy}","received_events_url":"https://api.github.com/users/markoshust/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/acknowledged","name":"acknowledged","color":"02d7e1"},{"url":"https://api.github.com/repos/magento/magento2/labels/bug%20report","name":"bug report","color":"d93f0b"},{"url":"https://api.github.com/repos/magento/magento2/labels/needs%20update","name":"needs update","color":"b60205"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2015-12-10T15:37:53Z","updated_at":"2016-10-16T08:49:37Z","closed_at":"2016-03-07T16:47:10Z","body":"I'm trying to define a cronjob for a custom module but noticing some issues:\r\n\r\n- It seems that third-party cronjobs are only scheduled once, when the cache is flushed. When the scheduled `./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.\r\n- 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.\r\n  - Is this perhaps related to cron group? I noticed that items in the `default` cron group never get rescheduled, but it seems that items in the `index` cron group do (at least items from core code).\r\n  - Disabling the cache doesn't help.\r\n  - Even if cache is disabled, the third-party modules never get registered.\r\n  - Even if cache is disabled, iff a `./bin/magento cache:flush` is run, all of the items in the `default` 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.\r\n- What is the purpose of running `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-bkg\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/254035128","html_url":"https://github.com/magento/magento2/issues/2672#issuecomment-254035128","issue_url":"https://api.github.com/repos/magento/magento2/issues/2672","id":254035128,"user":{"login":"bartek9007","id":20238194,"avatar_url":"https://avatars.githubusercontent.com/u/20238194?v=3","gravatar_id":"","url":"https://api.github.com/users/bartek9007","html_url":"https://github.com/bartek9007","followers_url":"https://api.github.com/users/bartek9007/followers","following_url":"https://api.github.com/users/bartek9007/following{/other_user}","gists_url":"https://api.github.com/users/bartek9007/gists{/gist_id}","starred_url":"https://api.github.com/users/bartek9007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartek9007/subscriptions","organizations_url":"https://api.github.com/users/bartek9007/orgs","repos_url":"https://api.github.com/users/bartek9007/repos","events_url":"https://api.github.com/users/bartek9007/events{/privacy}","received_events_url":"https://api.github.com/users/bartek9007/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T08:49:36Z","updated_at":"2016-10-16T08:49:36Z","body":"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."}}
{"actor":{"display_login":"bartek9007"}}