agent: thread attributes map from dispatch to job (#4598)
* agent: thread simulation flag from dispatch to job Reads simulation from AgentDispatch / RoomAgentDispatch and copies it onto Job in agent.LaunchJob and the inline room-agent path so workers see the flag. Stacked on top of livekit/protocol#1629. * agent: replace simulation bool with attributes map Threads the renamed attributes map (was bool simulation) from dispatch to job and bumps the protocol pseudo-version. * deps
This commit is contained in:
@@ -64,6 +64,7 @@ type JobRequest struct {
|
||||
Metadata string
|
||||
AgentName string
|
||||
Deployment string
|
||||
Attributes map[string]string
|
||||
}
|
||||
|
||||
type agentClient struct {
|
||||
@@ -172,6 +173,7 @@ func (c *agentClient) LaunchJob(ctx context.Context, desc *JobRequest) *serverut
|
||||
Metadata: desc.Metadata,
|
||||
EnableRecording: c.config.EnableUserDataRecording,
|
||||
Deployment: desc.Deployment,
|
||||
Attributes: desc.Attributes,
|
||||
}
|
||||
resp, err := c.client.JobRequest(context.Background(), topic, jobTypeTopic, job)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user