def getappattr(path): """Get attribute from current_app recursively. Example: ``getappattr('amqp.get_task_consumer')``. """ from celery import current_app return current_app._rgetattr(path)
def getappattr(path): """Gets attribute from the current_app recursively, e.g. getappattr('amqp.get_task_consumer')``.""" from celery import current_app return current_app._rgetattr(path)