From 81d6ca10a1c2a769bdddf49072d5590a86e0a3d6 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Sat, 25 Dec 2021 22:10:25 +0100 Subject: [PATCH] Fix compatibility with Celery 5.2 --- celery_haystack/__init__.py | 2 +- celery_haystack/tasks.py | 4 ++-- docs/changelog.rst | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/celery_haystack/__init__.py b/celery_haystack/__init__.py index d0ecbd7..97f5185 100644 --- a/celery_haystack/__init__.py +++ b/celery_haystack/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.20.post2' +__version__ = '0.21' def version_hook(config): diff --git a/celery_haystack/tasks.py b/celery_haystack/tasks.py index 1d6b06d..4326049 100644 --- a/celery_haystack/tasks.py +++ b/celery_haystack/tasks.py @@ -160,5 +160,5 @@ class CeleryHaystackUpdateIndex(current_app.Task): logger.info("Finishing update index") -current_app.tasks.register(CeleryHaystackSignalHandler) -current_app.tasks.register(CeleryHaystackUpdateIndex) +CeleryHaystackSignalHandler = current_app.register_task(CeleryHaystackSignalHandler()) +CeleryHaystackUpdateIndex = current_app.register_task(CeleryHaystackUpdateIndex()) diff --git a/docs/changelog.rst b/docs/changelog.rst index c2acaf3..3c75936 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,11 @@ Changelog ========= +v0.21 (2021-12-25) +------------------ + +* Added support for Celery 5.2 + v0.20 (2021-02-11) ------------------ -- GitLab