Answer the question
In order to leave comments, you need to log in
Is it possible to use laravel's withoutOverlapping method along with time?
Good evening!
Everywhere I see that you can use the withoutOverlapping method to prevent a process from starting if the previous one is already running:
$schedule->command('emails:send')->withoutOverlapping();
$schedule->command('emails:send')->everyMinute()->withoutOverlapping();
Answer the question
In order to leave comments, you need to log in
Perhaps it makes sense for you to get away from using cron in principle, looking towards the queue (+ horizon, optional)?
Such a solution will turn out to be horizontally scalable, and (really) not so complicated and "terrible" to implement :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question