##// END OF EJS Templates
Fixed url bug when using numeric revision in file browser,...
Fixed url bug when using numeric revision in file browser, added follow branch checkbox for browsing only changesets from current branch

File last commit:

r785:277427ac beta
r884:322b53be beta
Show More
commands.py
90 lines | 2.5 KiB | text/x-python | PythonLexer
complete rewrite of paster commands,...
r785 from rhodecode.lib.utils import BasePasterCommand, Command
Celery is configured by the .ini files and run from paster now...
r776
__all__ = ['CeleryDaemonCommand', 'CeleryBeatCommand',
'CAMQPAdminCommand', 'CeleryEventCommand']
complete rewrite of paster commands,...
r785 class CeleryDaemonCommand(BasePasterCommand):
Celery is configured by the .ini files and run from paster now...
r776 """Start the celery worker
Starts the celery worker that uses a paste.deploy configuration
file.
"""
usage = 'CONFIG_FILE [celeryd options...]'
summary = __doc__.splitlines()[0]
description = "".join(__doc__.splitlines()[2:])
parser = Command.standard_parser(quiet=True)
def update_parser(self):
from celery.bin import celeryd
for x in celeryd.WorkerCommand().get_options():
self.parser.add_option(x)
def command(self):
from celery.bin import celeryd
return celeryd.WorkerCommand().run(**vars(self.options))
complete rewrite of paster commands,...
r785 class CeleryBeatCommand(BasePasterCommand):
Celery is configured by the .ini files and run from paster now...
r776 """Start the celery beat server
Starts the celery beat server using a paste.deploy configuration
file.
"""
usage = 'CONFIG_FILE [celerybeat options...]'
summary = __doc__.splitlines()[0]
description = "".join(__doc__.splitlines()[2:])
parser = Command.standard_parser(quiet=True)
def update_parser(self):
from celery.bin import celerybeat
for x in celerybeat.BeatCommand().get_options():
self.parser.add_option(x)
def command(self):
from celery.bin import celerybeat
return celerybeat.BeatCommand(**vars(self.options))
complete rewrite of paster commands,...
r785 class CAMQPAdminCommand(BasePasterCommand):
Celery is configured by the .ini files and run from paster now...
r776 """CAMQP Admin
CAMQP celery admin tool.
"""
usage = 'CONFIG_FILE [camqadm options...]'
summary = __doc__.splitlines()[0]
description = "".join(__doc__.splitlines()[2:])
parser = Command.standard_parser(quiet=True)
def update_parser(self):
from celery.bin import camqadm
for x in camqadm.OPTION_LIST:
self.parser.add_option(x)
def command(self):
from celery.bin import camqadm
return camqadm.camqadm(*self.args, **vars(self.options))
complete rewrite of paster commands,...
r785 class CeleryEventCommand(BasePasterCommand):
Celery is configured by the .ini files and run from paster now...
r776 """Celery event commandd.
Capture celery events.
"""
usage = 'CONFIG_FILE [celeryev options...]'
summary = __doc__.splitlines()[0]
description = "".join(__doc__.splitlines()[2:])
parser = Command.standard_parser(quiet=True)
def update_parser(self):
from celery.bin import celeryev
for x in celeryev.OPTION_LIST:
self.parser.add_option(x)
def command(self):
from celery.bin import celeryev
return celeryev.run_celeryev(**vars(self.options))