refactored task update of worker - fix: gave local node of worker the task object