feat(agent-dispatch): add job restart policy (#4401)

* feat(agent-dispatch): add job restart policy

* deps
This commit is contained in:
Anunay Maheshwari
2026-03-27 21:32:04 +05:30
committed by GitHub
parent 34bd1e0851
commit ff7fd7ed56
4 changed files with 66 additions and 64 deletions
+5 -4
View File
@@ -67,10 +67,11 @@ func (ag *AgentDispatchService) CreateDispatch(ctx context.Context, req *livekit
}
dispatch := &livekit.AgentDispatch{
Id: guid.New(guid.AgentDispatchPrefix),
AgentName: req.AgentName,
Room: req.Room,
Metadata: req.Metadata,
Id: guid.New(guid.AgentDispatchPrefix),
AgentName: req.AgentName,
Room: req.Room,
Metadata: req.Metadata,
RestartPolicy: req.RestartPolicy,
}
return ag.agentDispatchClient.CreateDispatch(ctx, ag.topicFormatter.RoomTopic(ctx, livekit.RoomName(req.Room)), dispatch)
}