skip to Main Content

Redis – celery .delay freezes for this task but runs for others

I am trying to send notifications using celery. @shared_task(name='send_notifis') def send_notifs(device_ids, title, message): from pills_reminder.models import UserNotifications, UserDevice devices = UserDevice.objects.filter(id__in=device_ids) print(devices) device_tokens = [] for device in devices: UserNotifications.objects.create( uid=device.device_id, title=title, message=message, ) print(UserNotifications) device_tokens.append(device.registration_token) if len(device_tokens) > 1:…

VIEW QUESTION
Back To Top
Search