コード例 #1
0
ファイル: test_events.py プロジェクト: zhangzewen/celery
 def setup(self):
     self.ev = events.events(app=self.app)
コード例 #2
0
ファイル: test_events.py プロジェクト: JeniaSkorski/celery
 def setUp(self):
     self.app = app_or_default()
     self.ev = events.events(app=self.app)
コード例 #3
0
"""

Shortcut to the Django snapshot service.

"""
from __future__ import absolute_import, unicode_literals

from celery.bin import events

from djcelery.app import app
from djcelery.management.base import CeleryCommand

ev = events.events(app=app)


class Command(CeleryCommand):
    """Run the celery curses event viewer."""
    options = (CeleryCommand.options
             + ev.get_options()
             + ev.preload_options)
    help = 'Takes snapshots of the clusters state to the database.'

    def handle(self, *args, **options):
        """Handle the management command."""
        options['camera'] = 'djcelery.snapshot.Camera'
        ev.run(*args, **options)
コード例 #4
0
ファイル: test_events.py プロジェクト: AnSavvides/celery
 def setup(self):
     self.ev = events.events(app=self.app)
コード例 #5
0
ファイル: celerycam.py プロジェクト: spathak510/HRM_Project
"""

Shortcut to the Django snapshot service.

"""
from __future__ import absolute_import, unicode_literals

from celery.bin import events

from djcelery.app import app
from djcelery.management.base import CeleryCommand

ev = events.events(app=app)


class Command(CeleryCommand):
    """Run the celery curses event viewer."""
    help = 'Takes snapshots of the clusters state to the database.'
    options = (
        tuple(CeleryCommand.options) +
        tuple(ev.get_options()) +
        tuple(getattr(ev, 'preload_options', ()))
    )

    def handle(self, *args, **options):
        """Handle the management command."""
        options['camera'] = 'djcelery.snapshot.Camera'
        ev.run(*args, **options)
コード例 #6
0
ファイル: test_events.py プロジェクト: shahjahanw/celery
 def setUp(self):
     self.app = app_or_default()
     self.ev = events.events(app=self.app)