Reset previously configured optimizations.
(app=current_app)
| 820 | |
| 821 | |
| 822 | def reset_worker_optimizations(app=current_app): |
| 823 | """Reset previously configured optimizations.""" |
| 824 | try: |
| 825 | delattr(BaseTask, '_stackprotected') |
| 826 | except AttributeError: |
| 827 | pass |
| 828 | try: |
| 829 | BaseTask.__call__ = _patched.pop('BaseTask.__call__') |
| 830 | except KeyError: |
| 831 | pass |
| 832 | app.use_fast_trace_task = False |
| 833 | |
| 834 | |
| 835 | def _install_stack_protection(): |
searching dependent graphs…