add : dump task state

Signed-off-by: James-Tu <57621080@qq.com>