def reset_worker_optimizations():
 global trace_task_ret
 trace_task_ret = _trace_task_ret
 try:
  delattr(BaseTask, u'_stackprotected')
 except AttributeError:
  pass
 try:
  BaseTask.__call__ = _patched.pop(u'BaseTask.__call__')
 except KeyError:
  pass
 from celery.worker import request as request_module
 request_module.trace_task_ret = _trace_task_ret

def reset_worker_optimizations ( ) : global trace_task_ret trace_task_ret = _trace_task_ret try : delattr ( BaseTask , u'_stackprotected' ) except AttributeError : pass try : BaseTask . __call__ = _patched . pop ( u'BaseTask.__call__' ) except KeyError : pass from celery . worker import request as request_module request_module . trace_task_ret = _trace_task_ret
reset previously configured optimizations .