The person holding the chicken is the only person who is allowed to talk. If you don't hold the chicken you cannot speak.

Replace Chicken with Mutex and person with thread and you basically have the concept of a mutex.

Here's what happens inside the withoutOverlapping method: public function withoutOverlapping() { $this->withoutOverlapping = true; return $this->then(function () { $this->mutex->forget($this); })->skip(function () { return $this->mutex->exists($this); }); }

Also before running the job, Laravel does the following check inside the Console\Scheduling\Event::run() method: if ($this->withoutOverlapping && !
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners