How to "select-for-update" from a table

998 0
Showing results for 
Search instead for 
Did you mean: 
5 - Automation Enthusiast
5 - Automation Enthusiast

I am looking for the best way to query a record from a table and to mark it as Assigned and avoid a different thread of the same automation from picking that row -- something like a select-for-update or distributed locking. In the example below, I don't want 2 simultaneous runs of the automation to pickup gtin3.

From what I can find there is no native support for something like this. The best way I can think of is to read an unassigned record and in the next step of the automation to update it as assigned before doing other steps. And later revert it back if the subsequent steps runs into failures. Looking to learn how others might have worked around this.

The automation is run in

Screenshot 2023-12-22 at 4.59.05 PM.png

0 Replies 0