Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. QueueInterface.php

function QueueInterface::releaseItem

Releases an item that the worker could not process.

Another worker can come in and process it before the timeout expires.

Parameters

$item: The item returned by \Drupal\Core\Queue\QueueInterface::claimItem().

Return value

bool TRUE if the item has been released, FALSE otherwise.

2 methods override QueueInterface::releaseItem()
DatabaseQueue::releaseItem in core/lib/Drupal/Core/Queue/DatabaseQueue.php
Releases an item that the worker could not process.
Memory::releaseItem in core/lib/Drupal/Core/Queue/Memory.php
Releases an item that the worker could not process.

File

core/lib/Drupal/Core/Queue/QueueInterface.php, line 90

Class

QueueInterface
Interface for a queue.

Namespace

Drupal\Core\Queue

Code

public function releaseItem($item);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal