fix worker resource update bug
Merge pull request #249 from huafengw/worker

fix worker resource update bug
add a page rank example