Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(26)  |  Call(12)  |  Derive(0)  |  Import(14)

src/c/e/celery-3.1.11/celery/app/base.py   celery(Download)
from celery import platforms
from celery import signals
from celery._state import (
    _task_stack, get_current_app, _set_current_app, set_default_app,
    _register_app, get_current_worker_task, connect_on_app_finalize,

src/c/e/celery-HEAD/celery/app/base.py   celery(Download)
from celery import platforms
from celery import signals
from celery._state import (
    _task_stack, get_current_app, _set_current_app, set_default_app,
    _register_app, get_current_worker_task, connect_on_app_finalize,

src/c/e/celery-3.1.11/celery/app/__init__.py   celery(Download)
from celery.local import Proxy
from celery import _state
from celery._state import (
    get_current_app as current_app,
    get_current_task as current_task,
def _app_or_default(app=None):
    if app is None:
        return _state.get_current_app()
    return app
 
            def task_by_cons():
                app = current_app()
                return app.tasks[
                    name or gen_task_name(app, fun.__name__, fun.__module__)
                ]

src/c/e/celery-HEAD/celery/app/__init__.py   celery(Download)
from celery.local import Proxy
from celery import _state
from celery._state import (
    get_current_app as current_app,
    get_current_task as current_task,
def _app_or_default(app=None):
    if app is None:
        return _state.get_current_app()
    return app
 
            def task_by_cons():
                app = current_app()
                return app.tasks[
                    name or gen_task_name(app, fun.__name__, fun.__module__)
                ]

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/app/__init__.py   antisocial(Download)
from celery.local import Proxy
from celery import _state
from celery._state import (  # noqa
    set_default_app,
    get_current_app as current_app,
def _app_or_default(app=None):
    if app is None:
        return _state.get_current_app()
    return app
 
            def task_by_cons():
                app = current_app()
                return app.tasks[
                    name or gen_task_name(app, fun.__name__, fun.__module__)
                ]

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/app/__init__.py   firefox-flicks(Download)
from celery.local import Proxy
from celery import _state
from celery._state import (  # noqa
    set_default_app,
    get_current_app as current_app,
def _app_or_default(app=None):
    if app is None:
        return _state.get_current_app()
    return app
 
            def task_by_cons():
                app = current_app()
                return app.tasks[
                    name or gen_task_name(app, fun.__name__, fun.__module__)
                ]

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/app/base.py   antisocial(Download)
from celery.loaders import get_loader_cls
from celery.local import PromiseProxy, maybe_evaluate
from celery._state import _task_stack, _tls, get_current_app, _register_app
from celery.utils.functional import first
from celery.utils.imports import instantiate, symbol_by_name

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/app/base.py   firefox-flicks(Download)
from celery.loaders import get_loader_cls
from celery.local import PromiseProxy, maybe_evaluate
from celery._state import _task_stack, _tls, get_current_app, _register_app
from celery.utils.functional import first
from celery.utils.imports import instantiate, symbol_by_name

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/bin/base.py   antisocial(Download)
    def _get_default_app(self, *args, **kwargs):
        from celery._state import get_current_app
        return get_current_app()  # omit proxy
 
 

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/bin/base.py   firefox-flicks(Download)
    def _get_default_app(self, *args, **kwargs):
        from celery._state import get_current_app
        return get_current_app()  # omit proxy
 
 

  1 | 2  Next