Adding flush to update_outgoing_message_statuses
Adding flush to update_outgoing_message_statuses