bug fix: task status change when job suspended
Merge pull request #68 from wtangiit/master

fix a bug introduced in pull request #66