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

All Samples(34)  |  Call(0)  |  Derive(34)  |  Import(0)

src/c/e/celery-3.1.11/celery/worker/components.py   celery(Download)
class Timer(bootsteps.Step):
    """This step initializes the internal timer used by the worker."""
 
    def create(self, w):
        if w.use_eventloop:
class Queues(bootsteps.Step):
    """This bootstep initializes the internal queues
    used by the worker."""
    label = 'Queues (intra)'
    requires = (Hub, )
class StateDB(bootsteps.Step):
    """This bootstep sets up the workers state db if enabled."""
 
    def __init__(self, w, **kwargs):
        self.enabled = w.state_db

src/c/e/celery-HEAD/celery/worker/components.py   celery(Download)
class Timer(bootsteps.Step):
    """This step initializes the internal timer used by the worker."""
 
    def create(self, w):
        if w.use_eventloop:
class Queues(bootsteps.Step):
    """This bootstep initializes the internal queues
    used by the worker."""
    label = 'Queues (intra)'
    requires = (Hub, )
class StateDB(bootsteps.Step):
    """This bootstep sets up the workers state db if enabled."""
 
    def __init__(self, w, **kwargs):
        self.enabled = w.state_db

src/c/e/celery-HEAD/celery/tests/worker/test_bootsteps.py   celery(Download)
        class X(bootsteps.Step):
            blueprint = bp
            name = 'X'
        self.assertEqual(X.name, 'X')
 
        class Y(bootsteps.Step):
        class tnA(bootsteps.Step):
            name = 'test_Blueprint.A'
 
        class tnB(bootsteps.Step):
            name = 'test_Blueprint.B'
 
        class xxA(bootsteps.Step):

src/c/e/celery-3.1.11/celery/tests/worker/test_bootsteps.py   celery(Download)
        class X(bootsteps.Step):
            blueprint = bp
            name = 'X'
        self.assertEqual(X.name, 'X')
 
        class Y(bootsteps.Step):
        class tnA(bootsteps.Step):
            name = 'test_Blueprint.A'
 
        class tnB(bootsteps.Step):
            name = 'test_Blueprint.B'
 
        class xxA(bootsteps.Step):