logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

Renew lock token in logic app using Service Bus peek-lock trigger

Open cuongdq19 opened this issue 3 years ago • 1 comments
trafficstars

Hi, I'm running a logic app using Service Bus peek-lock trigger. The Service Bus queue has 5 minutes of message lock duration, which is the maximum time to set. image There is an issue when the processes take more than 5 minutes, then when I make a "Complete the message in a queue" after processing the logic, it returns a Bad Request. image There is a logic app action of "Renew the lock token of the session". But I haven't found any solutions to achieve this so that the lock token is renewed if the instance is running for more than 5 minutes. If you have any solution, don't be afraid to raise and discuss it together. Thanks for your help.

cuongdq19 avatar Feb 24 '22 07:02 cuongdq19

Interesting question. If an action before the complete takes more than 5 minutes, than it will become difficult to renew the token. If you're doing consequent actions, e.g. in a loop, just renew the token at each iteration, that way it doesn't expire.

Another thing that you could do try is to swap the lock token version of the sb action for an auto complete one. So it will retrieve and complete when the message arrives in the logic app. Downside is that you won't be able to have control over when to complete, defer or deadletter.

sahinozd avatar Apr 22 '22 04:04 sahinozd

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 20 '22 22:10 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 27 '22 22:10 github-actions[bot]