Fix requirements, turn task into shared_task for compatibility

This commit is contained in:
Kumi 2021-11-12 14:04:50 +01:00
parent 77d9b817ce
commit a98b65bad0
3 changed files with 6 additions and 3 deletions

View file

@ -1,10 +1,10 @@
from celery import shared_task, task from celery import shared_task
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@task(name="cron") @shared_task(name="cron")
def process_crons(): def process_crons():
from core.modules.cron import crondefinitions from core.modules.cron import crondefinitions
for definition in crondefinitions: for definition in crondefinitions:

View file

@ -1,3 +1,5 @@
rabbitmq-server rabbitmq-server
memcached memcached
git git
build-essential
libmariadb-dev

View file

@ -21,3 +21,4 @@ GitPython
python-dateutil python-dateutil
bindglobal bindglobal
pyotp pyotp
pyqrcode