def get(self, timeout=None, propagate=True, interval=0.5, no_ack=True, follow_parents=True, EXCEPTION_STATES=states.EXCEPTION_STATES, PROPAGATE_STATES=states.PROPAGATE_STATES):
    'Wait until task is ready, and return its result.\n\n        .. warning::\n\n           Waiting for tasks within a task may lead to deadlocks.\n           Please read :ref:`task-synchronous-subtasks`.\n\n        :keyword timeout: How long to wait, in seconds, before the\n                          operation times out.\n        :keyword propagate: Re-raise exception if the task failed.\n        :keyword interval: Time to wait (in seconds) before retrying to\n           retrieve the result.  Note that this does not have any effect\n           when using the amqp result store backend, as it does not\n           use polling.\n        :keyword no_ack: Enable amqp no ack (automatically acknowledge\n            message).  If this is :const:`False` then the message will\n            **not be acked**.\n        :keyword follow_parents: Reraise any exception raised by parent task.\n\n        :raises celery.exceptions.TimeoutError: if `timeout` is not\n            :const:`None` and the result does not arrive within `timeout`\n            seconds.\n\n        If the remote call raised an exception then that exception will\n        be re-raised.\n\n        '
    assert_will_not_block()
    on_interval = None
    if (follow_parents and propagate and self.parent):
        on_interval = self._maybe_reraise_parent_error
        on_interval()
    if self._cache:
        if propagate:
            self.maybe_reraise()
        return self.result
    meta = self.backend.wait_for(self.id, timeout=timeout, interval=interval, on_interval=on_interval, no_ack=no_ack)
    if meta:
        self._maybe_set_cache(meta)
        status = meta['status']
        if ((status in PROPAGATE_STATES) and propagate):
            raise meta['result']
        return meta['result']
Wait until task is ready, and return its result.

.. warning::

   Waiting for tasks within a task may lead to deadlocks.
   Please read :ref:`task-synchronous-subtasks`.

:keyword timeout: How long to wait, in seconds, before the
                  operation times out.
:keyword propagate: Re-raise exception if the task failed.
:keyword interval: Time to wait (in seconds) before retrying to
   retrieve the result.  Note that this does not have any effect
   when using the amqp result store backend, as it does not
   use polling.
:keyword no_ack: Enable amqp no ack (automatically acknowledge
    message).  If this is :const:`False` then the message will
    **not be acked**.
:keyword follow_parents: Reraise any exception raised by parent task.

:raises celery.exceptions.TimeoutError: if `timeout` is not
    :const:`None` and the result does not arrive within `timeout`
    seconds.

If the remote call raised an exception then that exception will
be re-raised.
def get(self, timeout=None, propagate=True, interval=0.5, no_ack=True, follow_parents=True, EXCEPTION_STATES=states.EXCEPTION_STATES, PROPAGATE_STATES=states.PROPAGATE_STATES):
    'Wait until task is ready, and return its result.\n\n        .. warning::\n\n           Waiting for tasks within a task may lead to deadlocks.\n           Please read :ref:`task-synchronous-subtasks`.\n\n        :keyword timeout: How long to wait, in seconds, before the\n                          operation times out.\n        :keyword propagate: Re-raise exception if the task failed.\n        :keyword interval: Time to wait (in seconds) before retrying to\n           retrieve the result.  Note that this does not have any effect\n           when using the amqp result store backend, as it does not\n           use polling.\n        :keyword no_ack: Enable amqp no ack (automatically acknowledge\n            message).  If this is :const:`False` then the message will\n            **not be acked**.\n        :keyword follow_parents: Reraise any exception raised by parent task.\n\n        :raises celery.exceptions.TimeoutError: if `timeout` is not\n            :const:`None` and the result does not arrive within `timeout`\n            seconds.\n\n        If the remote call raised an exception then that exception will\n        be re-raised.\n\n        '
    assert_will_not_block()
    on_interval = None
    if (follow_parents and propagate and self.parent):
        on_interval = self._maybe_reraise_parent_error
        on_interval()
    if self._cache:
        if propagate:
            self.maybe_reraise()
        return self.result
    meta = self.backend.wait_for(self.id, timeout=timeout, interval=interval, on_interval=on_interval, no_ack=no_ack)
    if meta:
        self._maybe_set_cache(meta)
        status = meta['status']
        if ((status in PROPAGATE_STATES) and propagate):
            raise meta['result']
        return meta['result']