Renamed success_monitor to task_state_monitor