Keep track of state of tasks
Merge pull request #1549 from nlake44/tq-state

Keep track of state of tasks