postFlightCheck method throws an exception if there is any pending action. But calling it after commit transaction does not make sense because even when you get the exception the damage is already done since the actual action was not executed.
Moving it before commit transaction ensures that if you get an exception you will be able to run it again
postFlightCheck
method throws an exception if there is any pending action. But calling it after commit transaction does not make sense because even when you get the exception the damage is already done since the actual action was not executed.Moving it before commit transaction ensures that if you get an exception you will be able to run it again