logicapps
logicapps copied to clipboard
Renew lock token in logic app using Service Bus peek-lock trigger
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.
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.
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.
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.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.