Skip to content

Commit 2041d09

Browse files
tschallackataylorotwell
authored andcommitted
[5.4] Fix for withOverlapping, the scheduled task would not resume (#19419)
* Fix for withOverlapping, the scheduled task would not resume if an error occurred. This adds a last resort handler to clean up the mutex bit if the application ended unexpectedly * Update CallbackEvent.php
1 parent 6bcc9b1 commit 2041d09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Console/Scheduling/CallbackEvent.php

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ public function run(Container $container)
6060
return;
6161
}
6262

63+
register_shutdown_function(function() {
64+
$this->removeMutex();
65+
});
66+
6367
try {
6468
$response = $container->call($this->callback, $this->parameters);
6569
} finally {

0 commit comments

Comments
 (0)