From 13a1c6daac6448083f357612d50c3a40d820665d Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Sun, 19 Aug 2018 16:22:14 +0200 Subject: [PATCH] Fixed #487: typos in scheduled tasks configuration --- .gitignore | 2 +- api/config/settings/common.py | 4 ++-- changes/changelog.d/487.bugfix | 1 + dev.yml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 changes/changelog.d/487.bugfix diff --git a/.gitignore b/.gitignore index 1a88c891c1..3983381664 100644 --- a/.gitignore +++ b/.gitignore @@ -72,7 +72,7 @@ api/media api/staticfiles api/static api/.pytest_cache - +api/celerybeat-* # Front oldfront/node_modules/ front/static/translations diff --git a/api/config/settings/common.py b/api/config/settings/common.py index 013c7ae431..1141579785 100644 --- a/api/config/settings/common.py +++ b/api/config/settings/common.py @@ -344,9 +344,9 @@ CELERY_BROKER_URL = env( # Your common stuff: Below this line define 3rd party library settings CELERY_TASK_DEFAULT_RATE_LIMIT = 1 CELERY_TASK_TIME_LIMIT = 300 -CELERYBEAT_SCHEDULE = { +CELERY_BEAT_SCHEDULE = { "federation.clean_music_cache": { - "task": "funkwhale_api.federation.tasks.clean_music_cache", + "task": "federation.clean_music_cache", "schedule": crontab(hour="*/2"), "options": {"expires": 60 * 2}, } diff --git a/changes/changelog.d/487.bugfix b/changes/changelog.d/487.bugfix new file mode 100644 index 0000000000..9bff9a59d5 --- /dev/null +++ b/changes/changelog.d/487.bugfix @@ -0,0 +1 @@ +Fixed typos in scheduled tasks configuration (#487) diff --git a/dev.yml b/dev.yml index c9b2eaf36f..1d9cbba203 100644 --- a/dev.yml +++ b/dev.yml @@ -55,7 +55,7 @@ services: links: - postgres - redis - command: celery -A funkwhale_api.taskapp worker -l debug + command: celery -A funkwhale_api.taskapp worker -l debug -B environment: - "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-localhost}" - "FUNKWHALE_HOSTNAME_SUFFIX=funkwhale.test" -- GitLab