From d994a22198be04af126af29e20ae44a95d941e86 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Sat, 8 Jan 2022 21:44:05 +0100
Subject: [PATCH] Try to fix enqueue_task

---
 celery_haystack/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/celery_haystack/utils.py b/celery_haystack/utils.py
index 24528d1..b016e6c 100644
--- a/celery_haystack/utils.py
+++ b/celery_haystack/utils.py
@@ -36,7 +36,7 @@ def enqueue_task(queue, **kwargs):
         options['countdown'] = settings.CELERY_HAYSTACK_COUNTDOWN
 
     task = get_update_task()
-    task_func = lambda: task.apply_async(queue, kwargs, **options)
+    task_func = lambda: task.apply_async((queue,), kwargs, **options)
 
     if hasattr(transaction, 'on_commit'):
         # Django 1.9 on_commit hook
-- 
GitLab