File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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
360361Example: ` 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
364377To insert a new task into a queue, use:
You can’t perform that action at this time.
0 commit comments