Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 7fe8f21

Browse files
author
Steve Porter
authored
Merge pull request #5 from designmynight/release-fix
fix: fix releasing failed messages
2 parents 74ffdf5 + 5a0013f commit 7fe8f21

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/RabbitMQQueue.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ public function pop($queue = null)
9696
});
9797
}
9898

99+
/**
100+
* {@inheritdoc}
101+
*/
102+
public function release($delay, $job, $data, $queue, $attempts = 0)
103+
{
104+
$this->lastPushed = $job;
105+
106+
return parent::release($delay, $job, $data, $queue, $attempts);
107+
}
108+
99109
/**
100110
* Fire the given event if a dispatcher is bound.
101111
*

0 commit comments

Comments
 (0)