Skip to content

Cron schedule is being duplicated #21380

Closed
@udovicic

Description

@udovicic

Preconditions (*)

  1. Create empty Magento project using composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition:2.2.7 .
  2. Install with something like following: 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="admin@example.com" --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.

Steps to reproduce (*)

  1. php bin/magento cron:run
  2. php bin/magento cache:flush
  3. (not sure, but i think you need to wait for 1 min)
  4. php bin/magento cron:run
  5. Execute following on the database: SELECT count(*), job_code, scheduled_at FROM `cron_schedule` GROUP BY job_code, scheduled_at ORDER BY `count(*)` DESC

Expected result (*)

  1. There are no duplicate cron jobs

Actual result (*)

  1. Cron jobs are being duplicated: Same job code at the same time exists multiple times

Note:

This has been reported few times before, but issue has been closed with note that new one should be opened if it still persists.

Metadata

Metadata

Assignees

Labels

Component: CronFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions