[library]Change update method in Worker model.