I have a Google sheet that makes use of the onEdit(e) trigger in Google App script. I need this trigger to launch when I update a certain part of my Excel sheet. This particular function takes around 30 seconds to complete and makes some modifications to the Sheet.
My problem is that if I make multiple edits to the relevant range, the sheet will launch 4-5 simultaneous instances of that function. They then conflict with each other causing incorrect results.
Is there a way to block simultaneous instances, or perhaps put a cooldown on the onEditfunction so that it won't launch until 30 seconds afterwards the first launch?