DrupalQueue::get

public static function DrupalQueue::get

public static DrupalQueue::get($name, $reliable = FALSE)

Returns the queue object for a given name.

The following variables can be set by variable_set or $conf overrides:

  • queue_class_$name: the class to be used for the queue $name.
  • queue_default_class: the class to use when queue_class_$name is not defined. Defaults to SystemQueue, a reliable backend using SQL.
  • queue_default_reliable_class: the class to use when queue_class_$name is not defined and the queue_default_class is not reliable. Defaults to SystemQueue.

Parameters

$name: Arbitrary string. The name of the queue to work with.

$reliable: TRUE if the ordering of items and guaranteeing