Skip to content

Commit

Permalink
Patch: Don't use celery for notifs
Browse files Browse the repository at this point in the history
  • Loading branch information
vcai122 committed Nov 22, 2024
1 parent 60b11fc commit b0105a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b0105a1

Please sign in to comment.