Skip to content

[9.x] Move unique lock release#43740

Merged
taylorotwell merged 2 commits intolaravel:9.xfrom
DougSisk:move-unique-job-release
Aug 17, 2022
Merged

[9.x] Move unique lock release#43740
taylorotwell merged 2 commits intolaravel:9.xfrom
DougSisk:move-unique-job-release

Conversation

@DougSisk
Copy link
Copy Markdown

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