Just an idea.
It seems not good to have the two decision routines, we may be able to
use the task_state_string() function here, too? For example,
Thanks for the suggestion, Kazu.
The current patch follows up the "_RUNNING_" change. But anyway, I also like your idea, it can help to clean up some old code. I will post v2 later.
Lianbo