add helper method to schedule task after successful commit