$node
$node :
The nodeq table name.
NodeQ Task Manager Queue
doCreateItem( $data) : \TriTan\Queue\A
Adds a queue item and store it directly to the queue.
$data | Arbitrary data to be associated with the new task in the queue. |
unique ID if the item was successfully created and was (best effort) added to the queue, otherwise false. We don't guarantee the item was committed to disk etc, but as far as we know, the item is now in the queue.
catchException( $e)
Act on an exception when queue might be stale.
If the node does not yet exist, that's fine, but if the node exists and yet the query failed, then the queue is stale and the exception needs to propagate.
$e | The exception. |
If the node exists the exception passed in is rethrown.