Implement an avalon_flush_work function for work restarts.