Reset previously configured optimizations.
(app=current_app)
| 845 | |
| 846 | |
| 847 | def reset_worker_optimizations(app=current_app): |
| 848 | """Reset previously configured optimizations.""" |
| 849 | try: |
| 850 | delattr(BaseTask, '_stackprotected') |
| 851 | except AttributeError: |
| 852 | pass |
| 853 | try: |
| 854 | BaseTask.__call__ = _patched.pop('BaseTask.__call__') |
| 855 | except KeyError: |
| 856 | pass |
| 857 | app.use_fast_trace_task = False |
| 858 | |
| 859 | |
| 860 | def _install_stack_protection(): |