Closed istiak-tridip closed 1 week ago
This PR addresses a bug with the withoutOverlapping method when used through the PendingEventAttributes proxy.
withoutOverlapping
PendingEventAttributes
Example Code:
Schedule::runInBackground() ->withoutOverlapping() ->everyMinute() ->command('inspire');
The above throws the following exception:
Undefined property: Illuminate\Console\Scheduling\PendingEventAttributes::$mutex, vendor/laravel/framework/src/Illuminate/Console/Scheduling/ManagesAttributes.php, 145
This issue occurs during schedule execution, not at Event instance creation, so existing tests didn’t catch it.
Event
Thanks to @decadence for reporting this bug.
Yes. With this fix Schedule doesn't throw Exception 👍
Schedule
This PR addresses a bug with the
withoutOverlapping
method when used through thePendingEventAttributes
proxy.Example Code:
The above throws the following exception:
This issue occurs during schedule execution, not at
Event
instance creation, so existing tests didn’t catch it.Thanks to @decadence for reporting this bug.