Skip to content
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

[9.x] Move unique lock release #43740

Merged
merged 2 commits into from
Aug 17, 2022

Conversation

DougSisk
Copy link
Contributor

Currently the unique queue job release is decoupled from the UniqueLock class which is used to acquire the lock. Should the logic change on how the key is generated, it would break the release potentially.

This moves the release into the same UniqueLock class and ensures both acquisition and release use the same key.

@taylorotwell taylorotwell merged commit 708ed2b into laravel:9.x Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants