@celery.task
def send_async(backend_name, id_, text, identities, context):
 logger.debug('send_async: %s', text)
 from rapidsms.router import get_router
 router = get_router()
 try:
  router.send_to_backend(backend_name=backend_name, id_=id_, text=text, identities=identities, context=context)
 except MessageSendingError:
  pass

@ celery . task def send_async ( backend_name , id_ , text , identities , context ) : logger . debug ( 'send_async: %s' , text ) from rapidsms . router import get_router router = get_router ( ) try : router . send_to_backend ( backend_name = backend_name , id_ = id_ , text = text , identities = identities , context = context ) except MessageSendingError : pass
task used to send outgoing messages to backends .