X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOpportunisticQM%2Flib%2Fopportunisticqueuemanager.php;h=f29a4f7df73f5be0c5e7e606b6aff508cf18101f;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=86a77150dec12567f5b729dc32d0209e28ae2eaa;hpb=4694d068f965ec733edcfe5c9afe8244ae01f00a;p=quix0rs-gnu-social.git diff --git a/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php b/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php index 86a77150de..f29a4f7df7 100644 --- a/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php +++ b/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php @@ -83,10 +83,17 @@ class OpportunisticQueueManager extends DBQueueManager // OpportunisticQM shouldn't discard items it can't handle, we're // only here to take care of what we _can_ handle! protected function noHandlerFound(Queue_item $qi, $rep=null) { - $this->_log(LOG_WARNING, "[{$qi->transport}:item {$qi->id}] Releasing claim for queue item without a handler"); + $this->_log(LOG_WARNING, "[{$qi->transport}:item {$qi->id}] Releasing claim for queue item without a handler"); $this->_fail($qi, true); // true here means "releaseOnly", so no error statistics since it's not an _error_ } + protected function _fail(Queue_item $qi, $releaseOnly=false) + { + parent::_fail($qi, $releaseOnly); + $this->_log(LOG_DEBUG, "[{$qi->transport}:item {$qi->id}] Ignoring this transport for the rest of this execution"); + $this->ignoreTransport($qi->transport); + } + /** * Takes care of running through the queue items, returning when * the limits setup in __construct are met.