File tree 1 file changed +13
-0
lines changed 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ align="right">
25
25
* [ Using the queue module] ( #using-the-queue-module )
26
26
* [ Initialization] ( #initialization )
27
27
* [ Creating a new queue] ( #creating-a-new-queue )
28
+ * [ Set queue settings] ( #set-queue-settings )
28
29
* [ Putting a task in a queue] ( #putting-a-task-in-a-queue )
29
30
* [ Taking a task from the queue ("consuming")] ( #taking-a-task-from-the-queue-consuming )
30
31
* [ Acknowledging the completion of a task] ( #acknowledging-the-completion-of-a-task )
@@ -359,6 +360,18 @@ created.
359
360
360
361
Example: ` queue.create_tube('list_of_sites', 'fifo', {temporary = true}) `
361
362
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
+
362
375
## Putting a task in a queue
363
376
364
377
To insert a new task into a queue, use:
You can’t perform that action at this time.
0 commit comments