check if task has running attribute