@shared_task(ignore_result=True)
def send_challenge_reminders():
    today = datetime.date.today()
    filters = {'is_active': True, 'challenges_recieved__end_date': today}
    relevant_runners = get_user_model().objects.filter(**filters)
    for runner in relevant_runners:
        send_challenge_reminder(runner.id)
@shared_task(ignore_result=True)
def send_challenge_reminders():
    today = datetime.date.today()
    filters = {'is_active': True, 'challenges_recieved__end_date': today}
    relevant_runners = get_user_model().objects.filter(**filters)
    for runner in relevant_runners:
        send_challenge_reminder(runner.id)