| 62 | |
| 63 | |
| 64 | class _TLS(threading.local): |
| 65 | #: Apps with the :attr:`~celery.app.base.BaseApp.set_as_current` attribute |
| 66 | #: sets this, so it will always contain the last instantiated app, |
| 67 | #: and is the default app returned by :func:`app_or_default`. |
| 68 | current_app = None |
| 69 | |
| 70 | |
| 71 | _tls = _TLS() |