Skip to content

Commit

Permalink
[5.1] BeanstalkdJob bury function delete job unexpectedly (#13963)
Browse files Browse the repository at this point in the history
* [BUG][5.1] Beanstalkd bury job is not working

Job will be deleted whenever bury job function is called.

Due to the release flag is not mark, every job goin to bury will be delete eventually.
```php
        if (! $job->isDeletedOrReleased()) {
            $job->delete();
        }
```

* Update BeanstalkdJob.php
  • Loading branch information
joeyew authored and taylorotwell committed Jun 16, 2016
1 parent 482a7cc commit d4afdd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Queue/Jobs/BeanstalkdJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public function release($delay = 0)
*/
public function bury()
{
parent::release();

$this->pheanstalk->bury($this->job);
}

Expand Down

0 comments on commit d4afdd2

Please sign in to comment.