Skip to content

Commit b2d9b46

Browse files
themsaidtaylorotwell
authored andcommitted
check if a mutex can be created (#19466)
1 parent 7ce053a commit b2d9b46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Illuminate/Console/Scheduling/CallbackEvent.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ public function __construct(Mutex $mutex, $callback, array $parameters = [])
5555
*/
5656
public function run(Container $container)
5757
{
58-
if ($this->description) {
59-
$this->mutex->create($this);
58+
if ($this->description && $this->withoutOverlapping &&
59+
! $this->mutex->create($this)) {
60+
return;
6061
}
6162

6263
try {

0 commit comments

Comments
 (0)