You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Queue job implementing ShouldQueue and ShouldBeUnique and dispatched via Job::dispatch()->afterResponse()
acquires lock using UniqueLock in PendingDispatch::shouldDispatch().
Then job is run using app(Dispatcher::class)->dispatchAfterResponse($this->job).
After job is done there is nothing that runs something similar to CallQueuedHandler::ensureUniqueJobLockIsReleased().
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
To your AppServiceProvider@boot() method. The UniqueJobHandler class should have either a handle() or __invoke() method that receives YourJob $job and handles running the job and deleting the lock if successful.
Description:
Queue job implementing
ShouldQueue
andShouldBeUnique
and dispatched viaJob::dispatch()->afterResponse()
acquires lock using
UniqueLock
inPendingDispatch::shouldDispatch()
.Then job is run using
app(Dispatcher::class)->dispatchAfterResponse($this->job)
.After job is done there is nothing that runs something similar to
CallQueuedHandler::ensureUniqueJobLockIsReleased()
.Steps To Reproduce:
ShouldQueue, ShouldBeUnique
uniqueId()
Job::dispatch()->afterResponse()
Job::dispatch()->afterResponse()
and it will not work since lock is still acquired.The text was updated successfully, but these errors were encountered: