Exemplo n.º 1
0
    def close(self):
        """Clean up after the application.

        Only necessary for dynamically created apps for which you can
        use the with statement instead::

            with Celery(set_as_current=False) as app:
                with app.connection() as conn:
                    pass
        """
        self._pool = None
        _deregister_app(self)
Exemplo n.º 2
0
    def close(self):
        """Clean up after the application.

        Only necessary for dynamically created apps for which you can
        use the :keyword:`with` statement instead

        Example:
            >>> with Celery(set_as_current=False) as app:
            ...     with app.connection_for_write() as conn:
            ...         pass
        """
        self._pool = None
        _deregister_app(self)
Exemplo n.º 3
0
    def close(self):
        """Close any open pool connections and do any other steps necessary
        to clean up after the application.

        Only necessary for dynamically created apps for which you can
        use the with statement instead::

            with Celery(set_as_current=False) as app:
                with app.connection() as conn:
                    pass
        """
        self._maybe_close_pool()
        _deregister_app(self)
Exemplo n.º 4
0
    def close(self):
        """Clean up after the application.

        Only necessary for dynamically created apps, and you should
        probably use the :keyword:`with` statement instead.

        Example:
            >>> with Celery(set_as_current=False) as app:
            ...     with app.connection_for_write() as conn:
            ...         pass
        """
        self._pool = None
        _deregister_app(self)
Exemplo n.º 5
0
    def close(self):
        """Close any open pool connections and do any other steps necessary
        to clean up after the application.

        Only necessary for dynamically created apps for which you can
        use the with statement instead::

            with Celery(set_as_current=False) as app:
                with app.connection() as conn:
                    pass
        """
        self._maybe_close_pool()
        _deregister_app(self)
Exemplo n.º 6
0
    def close(self):
        """Clean up after the application.

        Only necessary for dynamically created apps for which you can
        use the :keyword:`with` statement instead:

        .. code-block:: python

            with Celery(set_as_current=False) as app:
                with app.connection_for_write() as conn:
                    pass
        """
        self._pool = None
        _deregister_app(self)