Update a Queue
You can update a previously created queue.
Method Signature
updateQueue(queueName: string, options: IUpdateQueueOptions)
Types
UpdateQueueOptions:
maxInflight: (Number) The number of tasks you can concurrently execute.msgPerSecond: (Number) The number of tasks to be send to your callback endpoint per second.
Updating a Queue
await queue.updateQueue('queue', {
maxInflight: 10,
msgPerSecond: 100
});
options = UpdateQueueOptions()
options.maxInflight = 10
options.msgPerSecond = 100
await queue.updateQueue('queue', options)