fix crash AttributeError: Worker instance has no attribute 'error_sleep'