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

All Samples(24)  |  Call(14)  |  Derive(0)  |  Import(10)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/task/trace.py   antisocial(Download)
from celery._state import _task_stack
from celery.app import set_default_app
from celery.app.task import Task as BaseTask, Context
from celery.datastructures import ExceptionInfo
from celery.exceptions import Ignore, RetryTaskError
        try:
            push_task(task)
            task_request = Context(request or {}, args=args,
                                   called_directly=False, kwargs=kwargs)
            push_request(task_request)

src/c/e/celery-3.1.11/celery/app/trace.py   celery(Download)
from celery._state import _task_stack
from celery.app import set_default_app
from celery.app.task import Task as BaseTask, Context
from celery.exceptions import Ignore, Reject, Retry
from celery.utils.log import get_logger
        try:
            push_task(task)
            task_request = Context(request or {}, args=args,
                                   called_directly=False, kwargs=kwargs)
            push_request(task_request)

src/c/e/celery-HEAD/celery/app/trace.py   celery(Download)
from celery._state import _task_stack
from celery.app import set_default_app
from celery.app.task import Task as BaseTask, Context
from celery.exceptions import Ignore, Reject, Retry, InvalidTaskError
from celery.five import monotonic
                    'Task keyword arguments is not a mapping')
            push_task(task)
            task_request = Context(request or {}, args=args,
                                   called_directly=False, kwargs=kwargs)
            push_request(task_request)

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/task/trace.py   firefox-flicks(Download)
from celery._state import _task_stack
from celery.app import set_default_app
from celery.app.task import Task as BaseTask, Context
from celery.datastructures import ExceptionInfo
from celery.exceptions import Ignore, RetryTaskError
        try:
            push_task(task)
            task_request = Context(request or {}, args=args,
                                   called_directly=False, kwargs=kwargs)
            push_request(task_request)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/task/base.py   antisocial(Download)
from celery import current_app
from celery.__compat__ import class_property, reclassmethod
from celery.app.task import Context, TaskType, Task as BaseTask  # noqa
from celery.schedules import maybe_schedule
from celery.utils.log import get_task_logger

src/c/e/celery-3.1.11/celery/task/base.py   celery(Download)
 
from celery import current_app
from celery.app.task import Context, TaskType, Task as BaseTask  # noqa
from celery.five import class_property, reclassmethod
from celery.schedules import maybe_schedule

src/c/e/celery-HEAD/celery/task/base.py   celery(Download)
 
from celery import current_app
from celery.app.task import Context, TaskType, Task as BaseTask  # noqa
from celery.five import class_property, reclassmethod
from celery.schedules import maybe_schedule

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/task/base.py   firefox-flicks(Download)
from celery import current_app
from celery.__compat__ import class_property, reclassmethod
from celery.app.task import Context, TaskType, Task as BaseTask  # noqa
from celery.schedules import maybe_schedule
from celery.utils.log import get_task_logger

src/c/e/celery-HEAD/celery/tests/tasks/test_context.py   celery(Download)
# -*- coding: utf-8 -*-'
from __future__ import absolute_import
 
from celery.app.task import Context
from celery.tests.case import AppCase
        defaults[attr_name] = attr
    return defaults
default_context = get_context_as_dict(Context())
 
 
    def test_updated_context(self):
        expected = dict(default_context)
        changes = dict(id='unique id', args=['some', 1], wibble='wobble')
        ctx = Context()
        expected.update(changes)
    def test_modified_context(self):
        expected = dict(default_context)
        ctx = Context()
        expected['id'] = 'unique id'
        expected['args'] = ['some', 1]
    def test_cleared_context(self):
        changes = dict(id='unique id', args=['some', 1], wibble='wobble')
        ctx = Context()
        ctx.update(changes)
        ctx.clear()

src/c/e/celery-3.1.11/celery/tests/tasks/test_context.py   celery(Download)
# -*- coding: utf-8 -*-'
from __future__ import absolute_import
 
from celery.app.task import Context
from celery.tests.case import AppCase
        defaults[attr_name] = attr
    return defaults
default_context = get_context_as_dict(Context())
 
 
    def test_updated_context(self):
        expected = dict(default_context)
        changes = dict(id='unique id', args=['some', 1], wibble='wobble')
        ctx = Context()
        expected.update(changes)
    def test_modified_context(self):
        expected = dict(default_context)
        ctx = Context()
        expected['id'] = 'unique id'
        expected['args'] = ['some', 1]
    def test_cleared_context(self):
        changes = dict(id='unique id', args=['some', 1], wibble='wobble')
        ctx = Context()
        ctx.update(changes)
        ctx.clear()