F
F
fashionmens2019-02-07 16:49:26
Laravel
fashionmens, 2019-02-07 16:49:26

Laravel scheduler - executes a task twice at once. Why is this happening, where to check?

In the Laravel scheduler in Kernel.php, there are two tasks with an interval - one with daily and one with hourly.
Everything worked fine, nothing changed in the functionality.
But at some point, each task began to be executed synchronously twice. That is, as if during the execution of the task - it was launched twice by the scheduler.
For example, every hour - the task sent me an email with information, and now - two emails arrive at the same time at the same time.
Someone faced this? what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kupurim, 2019-02-07
@fashionmens

I had a case when the "schedule:run" call was registered in the cron on the server from the root user and from the main user, and they were launched in parallel.
As an option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question