mirror of https://github.com/jumpserver/jumpserver
17 lines
406 B
Python
17 lines
406 B
Python
from .celery_base import CeleryBaseService
|
|
|
|
__all__ = ['CeleryDefaultService']
|
|
|
|
|
|
class CeleryDefaultService(CeleryBaseService):
|
|
|
|
def __init__(self, **kwargs):
|
|
kwargs['queue'] = 'celery'
|
|
super().__init__(**kwargs)
|
|
|
|
def start_other(self):
|
|
from terminal.startup import CeleryTerminal
|
|
celery_terminal = CeleryTerminal()
|
|
celery_terminal.start_heartbeat_thread()
|
|
|