Added retry mechanism to update task