| ⬅️ Back | 🏠 Docs Root |
ARQ tasks for SMS and WhatsApp notifications via Twilio.
File: src/workers/notification_worker/tasks/twilio_tasks.py
send_twilio_taskasync def send_twilio_task(ctx, phone_number, message, appointment_id=None, media_url=None, variables=None):
Multi-channel dispatch with fallback:
variables and TWILIO_WHATSAPP_TEMPLATE_SID set)Each attempt logs success/failure and sends a status update.
send_appointment_notificationasync def send_appointment_notification(ctx, appointment_id, status, reason_text=None):
Autonomous notification dispatcher. Orchestrates both Email and Twilio tasks:
notifications:cache:{id}).send_email_task with confirmation or cancellation template.send_twilio_task.