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 )
@@ -357,6 +358,18 @@ created.
357
358
358
359
Example: ` queue.create_tube('list_of_sites', 'fifo', {temporary = true}) `
359
360
361
+ ## Set queue settings
362
+
363
+ ``` lua
364
+ queue .set_settings ({options })
365
+ ```
366
+
367
+ Set queue settings.
368
+ In case of failure, an error will be thrown.
369
+ Available ` options ` :
370
+ ` ttr ` - time to release in seconds. The time after which, if there is no active
371
+ connection in the session, it will be released with all its tasks.
372
+
360
373
## Putting a task in a queue
361
374
362
375
To insert a new task into a queue, use:
You can’t perform that action at this time.
0 commit comments