user: Use get_task_state() helper