ExperimentalExperimentalExperimentalRemoves and returns the first message from the queue for a specific task.
The task identifier
OptionalsessionId: stringOptional session ID for binding the query to a specific session
The first message, or undefined if the queue is empty
ExperimentalRemoves and returns all messages from the queue for a specific task.
The task identifier
OptionalsessionId: stringOptional session ID for binding the query to a specific session
Array of all messages that were in the queue
ExperimentalAdds a message to the end of the queue for a specific task. Atomically checks queue size and throws if maxSize would be exceeded.
The task identifier
The message to enqueue
OptionalsessionId: stringOptional session ID for binding the operation to a specific session
OptionalmaxSize: numberOptional maximum queue size - if specified and queue is full, throws an error
In-memory
TaskMessageQueueimplementation for development and testing. For production, use Redis or another distributed queue.