Here is my node, which sometimes freezes by the last INSERT command:
This process sometimes will freeze because the functionality for this node is to truncate the table. But sometimes the previous inserting command is not finished and the truncate is triggered, which will cause this node freeze for 2 hours to complete (originally should be 2 seconds to finish).
So my solution is to set up a timer condition if this node take too long then run the Stored procedure stop all MySQL
current database tasks (the inserting Action which insert data to this table).
What stored procedure can do this work?
Is the previous node that is doing the insert, configured to run multiple instances? If it is then it is probably configured to "Move on when: Each time an instance finishes". If that is the case then you can configure the previous node to "Move on when: All instances are done".