steep-balloon-41261
05/15/2023, 5:42 PMable-gigabyte-21598
05/15/2023, 6:33 PMstraight-agency-49112
05/16/2023, 6:52 AMstraight-agency-49112
05/16/2023, 12:11 PMengress_end
after room_finished
webhook event has been handled. So until room_finished
event isn’t processed it doesn’t even try to send egress_end
.
Also I can in the logs that track egress
participants only leaves the room after the room finished and not after the connected participant left.
2023-05-15T17:15:36.307Z INFO livekit service/roommanager.go:113 deleting room state {"room": "8f5vbht4ilwlqaqq"}
2023-05-15T17:15:36.309Z INFO livekit service/roommanager.go:455 room closed {"room": "8f5vbht4ilwlqaqq", "roomID": "RM_aqCmzcvr6x92"}
2023-05-15T17:15:36.322Z DEBUG livekit service/roommanager.go:493 RTC session finishing {"room": "8f5vbht4ilwlqaqq", "roomID": "RM_aqCmzcvr6x92", "participant": "EG_Z3aMaNp4QFZG", "pID": "PA_XfjCbz7J2ni6", "remote": false}
2023-05-15T17:15:36.349Z DEBUG livekit service/roommanager.go:493 RTC session finishing {"room": "8f5vbht4ilwlqaqq", "roomID": "RM_aqCmzcvr6x92", "participant": "EG_iifhfMWtYJsd", "pID": "PA_Y5GcuYEdbTCT", "remote": false}
2023/05/15 17:15:36 [DEBUG] POST XXXX/webhook
2023-05-15T17:15:36.693Z INFO livekit service/ioinfo.go:78 egress ended {"egressID": "EG_iifhfMWtYJsd"}
2023-05-15T17:15:36.813Z INFO livekit service/ioinfo.go:78 egress ended {"egressID": "EG_Z3aMaNp4QFZG"}
2023/05/15 17:16:05 [DEBUG] POST XXXX/webhook (status: 504): retrying in 1s (4 left)
.....
2023/05/15 17:17:39 [DEBUG] POST XXXX/webhook (status: 504): retrying in 8s (1 left)
2023-05-15T17:18:16.451Z WARN livekit webhook/url_notifier.go:70 failed to send webhook {"url": "XXXX/webhook", "event": "room_finished", "error": "POST XXXX/webhook giving up after 5 attempt(s)"}
2023/05/15 17:18:16 [DEBUG] POST XXXX/webhook
2023-05-15T17:18:16.599Z INFO livekit webhook/url_notifier.go:73 sent webhook {"url": "XXXX/webhook", "event": "egress_ended"}
2023/05/15 17:18:16 [DEBUG] POST XXXX/webhook
2023-05-15T17:18:16.705Z INFO livekit webhook/url_notifier.go:73 sent webhook {"url": "XXXX/webhook", "event": "egress_ended"}
able-gigabyte-21598
05/17/2023, 9:43 PMegress_ended
event is sent without waiting for the room to close.
If the egress and the room end at the same time, we don’t make any guarantees about the ordering of the events. The egress service needs to do things like wait for any dropped packets, close out the pipeline, and upload files, which might take a bit of extra time