diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-26 15:07:32 -0400 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-26 15:07:32 -0400 |
commit | f0c5e7eca3842411d4e3ee6efb3fd6ac0ad85f4a (patch) | |
tree | 1cb482ff35e53974eb6fb6c738e99841af82f7a5 /lib | |
parent | 9eb5a976b03fae6bd1e1fce6abfe4a6c7964d1ae (diff) |
Fix for bug #2382: releasing claim on failed queue item works again with DB-based queues.
Warning: DB-based queue doesn't currently implement discarding of items after a retry limit. Failed items will be retried until they succeed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dbqueuemanager.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dbqueuemanager.php b/lib/dbqueuemanager.php index 3032e4ec7..3dda9fd1a 100644 --- a/lib/dbqueuemanager.php +++ b/lib/dbqueuemanager.php @@ -135,9 +135,7 @@ class DBQueueManager extends QueueManager if (empty($qi->claimed)) { $this->_log(LOG_WARNING, "[$queue:item $qi->id] Ignoring failure for unclaimed queue item"); } else { - $orig = clone($qi); - $qi->claimed = null; - $qi->update($orig); + $qi->releaseClaim(); } $this->stats('error', $queue); |