util: implement tryOccupyTask
Merge pull request #87 from go-distributed/healthy

util: implement tryOccupyTask