composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition:2.2.7 .php bin/magento setup:install --base-url="http://www.example.com/" --db-host="db" --db-name="..." --db-user="..." --db-password="..." --admin-firstname="Admin" --admin-lastname="Admin" --admin-email="[email protected]" --admin-user="admin" --admin-password="..." --language="en_US" --currency="EUR" --timezone="Europe/Zagreb" --use-rewrites="1" --backend-frontname="admin". This is actually blank installation, but lets document just in case.SELECT count(*), job_code, scheduled_at FROM `cron_schedule` GROUP BY job_code, scheduled_at ORDER BY `count(*)` DESCThis has been reported few times before, but issue has been closed with note that new one should be opened if it still persists.
Hi @udovicic. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me 2.3-develop instance - upcoming 2.3.x release
For more details, please, review the Magento Contributor Assistant documentation.
@udovicic do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
Hi @engcom-backlog-nazar. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.
[ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.3-develop branchDetails
- Add the comment @magento-engcom-team give me 2.3-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Verify that the issue is reproducible on 2.2-develop branch. Details
- Add the comment @magento-engcom-team give me 2.2-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x
_Next steps are available in case you are a member of Community Maintainers._
[ ] 6. Add label Issue: Confirmed once verification is complete.
[ ] 7. Make sure that automatic system confirms that report has been added to the backlog.
Hi @udovicic this is expected behavior, if you have a job that runs every time like * * * * *, magento create a few rows for this job. this is not publicated rows.

Hi @engcom-backlog-nazar ,
If you repeat steps 1. - 4. few times, more duplicated rows appear, for an example:
count | job_codeJob Code | scheduled_at
--- | --- | ---
2 | indexer_update_all_views | 2019-02-21 10:02:00
2 | sales_send_order_invoice_emails | 2019-02-21 10:02:00
2 | sales_grid_order_invoice_async_insert | 2019-02-21 10:02:00
2 | catalog_product_outdated_price_values_cleanup | 2019-02-21 10:02:00
2 | sales_send_order_creditmemo_emails | 2019-02-21 10:02:00
2 | indexer_reindex_all_invalid | 2019-02-21 10:01:00
2 | outdated_authentication_failures_cleanup | 2019-02-21 10:02:00
2 | sales_grid_order_shipment_async_insert | 2019-02-21 10:02:00
2 | catalog_product_frontend_actions_flush | 2019-02-21 10:02:00
2 | sales_send_order_shipment_emails | 2019-02-21 10:02:00
2 | indexer_reindex_all_invalid | 2019-02-21 10:02:00
2 | sales_grid_order_creditmemo_async_insert | 2019-02-21 10:02:00
2 | magento_newrelicreporting_cron | 2019-02-21 10:02:00
2 | sales_send_order_emails | 2019-02-21 10:02:00
2 | sales_grid_order_async_insert | 2019-02-21 10:02:00
2 | indexer_update_all_views | 2019-02-21 10:01:00
1 | sales_grid_order_creditmemo_async_insert | 2019-02-21 10:22:00
1 | sales_send_order_creditmemo_emails | 2019-02-21 10:16:00
1 | sales_send_order_emails | 2019-02-21 10:04:00
1 | sales_grid_order_async_insert | 2019-02-21 10:04:00
1 | indexer_update_all_views | 2019-02-21 10:07:00
1 | outdated_authentication_failures_cleanup | 2019-02-21 10:12:00
1 | sales_send_order_emails | 2019-02-21 10:20:00
1 | sales_grid_order_async_insert | 2019-02-21 10:20:00
1 | magento_newrelicreporting_cron | 2019-02-21 10:08:00
Most of them are the cases that you have mentioned above, but one of the rows that also showed for me is:
<job name="magento_newrelicreporting_cron" instance="Magento\NewRelicReporting\Model\Cron" method="runCron">
<schedule>*/2 * * * *</schedule>
</job>
Just an example to show, but I do not think that one should be duplicated.
@udovicic on you screen you have 2 defferent job starting at the same time waths wrong here ?
@engcom-backlog-nazar That is not correct, if you check the SQL from description, you will notice that first column shows number of occurrences. Meaning that there is only one job magento_newrelicreporting_cron scheduled for 2019-02-21 10:08:00, but for 2019-02-21 10:02:00 it is scheduled two times.
:white_check_mark: Confirmed by @engcom-backlog-nazar
Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-98358, MAGETWO-98359 were created
Issue Available: @engcom-backlog-nazar, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._
I can confirm that Magento 2.3.1 creates crazy amounts of duplicated cron tasks, some of them are finished, many are missed, due to duplication. Especially some indexers were not refreshed in Update by Schedule mode. Definitely it should be fixed asap.
Hi @chickenland. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:
Component: XXXXX label(s) to the ticket, indicating the components it may be related to.[ ] 2. Verify that the issue is reproducible on 2.3-develop branchDetails
- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 3. Verify that the issue is reproducible on 2.2-develop branch. Details
- Add the comment @magento give me 2.2-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x
[ ] 4. If the issue is not relevant or is not reproducible any more, feel free to close it.
The issue here (that I can re-create) is the cron running multiple times in the same minute will schedule for that minute over and over - because it completes the task and then reschedules it. The fix I envisage here would be that instead of checking for pending cron tasks, it checks in all non-exited statuses (ie. pending, running or success) - and schedules based on that. Therefore, overlapping, completing/running cron tasks will not re-schedule completing/running cron tasks.
Hi @udovicic. Thank you for your report.
The issue has been fixed in magento/magento2#23312 by @chickenland in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming 2.3.3 release.
Hi @udovicic. Thank you for your report.
The issue has been fixed in magento/magento2#23439 by @ihor-sviziev in 2.2-develop branch
Related commit(s):
The fix will be available with the upcoming 2.2.10 release.
Most helpful comment
I can confirm that Magento 2.3.1 creates crazy amounts of duplicated cron tasks, some of them are finished, many are missed, due to duplication. Especially some indexers were not refreshed in Update by Schedule mode. Definitely it should be fixed asap.