Skip to content

Scheduler not working. schedule:run runs all tasks every time it is executed #509

@binaryfire

Description

@binaryfire

Hi guys

The scheduler doesn't work properly. schedule:run will execute all scheduled tasks each time it is executed. To reproduce, add the following schedule to a command:

    /**
     * Define the command's schedule.
     */
    public function schedule(Schedule $schedule): void
    {
        $schedule->command(static::class)->everyMinute();
    }

Then run ./app schedule:run multiple times in a row. The command is executed each time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions