How to find a task's execution status