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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners