Flush the pending write while the script still holds the lock. The incoming execution must see the previous ticket before selecting its own next number.
Open the complete handler ยท Rehearse a submitted row