task_state_guard
