redo migrations, cleanup

This commit is contained in:
Jens Langhammer
2019-02-08 14:57:59 +01:00
parent dc27316ac8
commit 648f614a1a
17 changed files with 240 additions and 189 deletions

View File

@ -0,0 +1,17 @@
"""passbook Worker management command"""
from logging import getLogger
from django.core.management.base import BaseCommand
from passbook.core.celery import CELERY_APP
LOGGER = getLogger(__name__)
class Command(BaseCommand):
"""Run Celery Worker"""
def handle(self, *args, **options):
"""celery worker"""
CELERY_APP.worker_main(['worker', '--autoscale=10,3', '-E'])