Skip to content

Commit 264b1cf

Browse files
committed
documentation: add description of the queue settings
Follows up #85
1 parent e152294 commit 264b1cf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ align="right">
2525
* [Using the queue module](#using-the-queue-module)
2626
* [Initialization](#initialization)
2727
* [Creating a new queue](#creating-a-new-queue)
28+
* [Set queue settings](#set-queue-settings)
2829
* [Putting a task in a queue](#putting-a-task-in-a-queue)
2930
* [Taking a task from the queue ("consuming")](#taking-a-task-from-the-queue-consuming)
3031
* [Acknowledging the completion of a task](#acknowledging-the-completion-of-a-task)
@@ -359,6 +360,18 @@ created.
359360

360361
Example: `queue.create_tube('list_of_sites', 'fifo', {temporary = true})`
361362

363+
## Set queue settings
364+
365+
```lua
366+
queue.cfg({options})
367+
```
368+
369+
Set queue settings.
370+
If an invalid value or an unknown option is used, an error will be thrown.
371+
Available `options`:
372+
* `ttr` - time to release in seconds. The time after which, if there is no active
373+
connection in the session, it will be released with all its tasks.
374+
362375
## Putting a task in a queue
363376

364377
To insert a new task into a queue, use:

0 commit comments

Comments
 (0)