Skip to content

Cron schedule bug #4173

@adrok

Description

@adrok

Steps to reproduce

  1. Install Magento from develop branch.
  2. run bin/magento cron:run

Expected result

  1. With default configuration, generated 4 jobs for "newsletter_send_all" (every 5 minutes, ahead 20 minutes)

Actual result

  1. Generated one job

magento2/app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php wrong return statement (for cycle)

if ($schedule->trySchedule()) {
                // time matches cron expression
                $schedule->save();
                return; //remove it!
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.1.xThe issue has been fixed in 2.1 release lineIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions