forward agent id to job state (#3786)

* forward agent id to job state

* deps
This commit is contained in:
Paul Wells
2025-07-16 14:17:13 -07:00
committed by GitHub
parent 1f31d430b0
commit ba702a5323
3 changed files with 20 additions and 18 deletions
+2
View File
@@ -141,6 +141,7 @@ type WorkerRegistration struct {
Protocol WorkerProtocolVersion
ID string
Version string
AgentID string
AgentName string
Namespace string
JobType livekit.JobType
@@ -344,6 +345,7 @@ func (w *Worker) AssignJob(ctx context.Context, job *livekit.Job) (*livekit.JobS
}
now := time.Now()
job.State.WorkerId = w.ID
job.State.AgentId = w.AgentID
job.State.UpdatedAt = now.UnixNano()
job.State.StartedAt = now.UnixNano()
job.State.Status = livekit.JobStatus_JS_RUNNING