From b0105a1f511023ecdf6359ffffe75579039ac1c5 Mon Sep 17 00:00:00 2001 From: vcai122 Date: Fri, 22 Nov 2024 17:15:32 -0500 Subject: [PATCH] Patch: Don't use celery for notifs --- backend/user/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/user/views.py b/backend/user/views.py index cacf5be8..96ab56e4 100644 --- a/backend/user/views.py +++ b/backend/user/views.py @@ -161,7 +161,9 @@ def post(self, request): (android_tokens, android_send_notification), ]: if tokens_list := list(tokens.values_list("token", flat=True)): - send.apply_async(args=(tokens_list, title, body, urgent), countdown=delay) + _ = delay + send(tokens_list, title, body, urgent) + # send.apply_async(args=(tokens_list, title, body, urgent), countdown=delay) users_with_service_usernames = users_with_service.values_list("username", flat=True) users_not_reached_usernames = list(set(usernames) - set(users_with_service_usernames))