from django_rq import job

from .. import utils


@job
def send_sms(to, body):
    utils.send_sms(to=to, body=body)

from django_rq import job

from .. import utils


@job
def send_sms(to, body):
    for number in to:
        send_single_sms.delay([to], body)


@job
def send_single_sms(to, body):
    utils.send_sms(to=to, body=body)

Split SMS sending into multiple jobs (to get around Heroku timeout)
Split SMS sending into multiple jobs (to get around Heroku timeout)
