-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.x] Ensure event mutex is always removed #39498
Conversation
The |
Oh shoot. Good point. I decided to leave that in there to change as few things possible—I have a |
…el-framework-fork into always-remove-event-mutex
@taylorotwell It kinda looks like framework/src/Illuminate/Console/Scheduling/CallbackEvent.php Lines 67 to 73 in cb46639
I'm having trouble understanding why |
I don't know why but I would be very cautious changing things we don't fully understand. ALWAYS leads to breaking changes. |
@inxilpro, so there is some remaining issue that prevents this particular PR from being merged? Are you sure |
I think that this can be merged as-is. If there's an issue with But
It's very very unlikely for that sequence to happen, but I think it's theoretically possible… |
This is a fix for #39452
removeMutex
method (which already exists onCallbackEvent
) that only clears the mutex if necessarytry
/finally
to callremoveMutex
try
/catch
that re-throws any exceptions after first callingremoveMutex
. Then, we callremoveMutex
incallAfterCallbacksWithExitCode
after the background job completes.