dusterio / laravel-plain-sqs

Custom SQS connector for Laravel (or Lumen) that supports third-party, plain JSON messages
MIT License
131 stars 92 forks source link

Larvel serviceprovider's queue::after event listener prevents manual job release #64

Open SajtiDH opened 7 months ago

SajtiDH commented 7 months ago

In the LaravelServiceProvider::boot() there is a handler for the JobProcessed event which deletes the job from the queue. Currently this is done without any conditions, even if the project uses other queue drivers, or even if the job was manually released previously. In case of manual release the job deletion prevents of the retry of the job, as the event is still dispatched so the job gets deleted.