Skip to content

Signals

hypha.apply.activity.signals

handle_event

handle_event(sender, event, esp_name, **kwargs)
Source code in hypha/apply/activity/signals.py
@receiver(tracking)
def handle_event(sender, event, esp_name, **kwargs):
    status = "Webhook received: {} [{}]".format(event.event_type, event.timestamp)
    if event.description:
        status += " " + event.description
    Message.objects.get(external_id=event.message_id).update_status(status)