Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Mar 12, 2025
1 parent de1dd6e commit 4df57ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flyteplugins/go/tasks/plugins/webapi/agent/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (p *Plugin) getAsyncAgentClient(ctx context.Context, agent *Deployment) (se
}

func (p *Plugin) watchAgents(ctx context.Context, agentService *core.AgentService) {
wait.Until(func() {
go wait.Until(func() {
childCtx, cancel := context.WithCancel(ctx)
defer cancel()
clientSet := getAgentClientSets(childCtx)
Expand Down Expand Up @@ -419,7 +419,7 @@ func newAgentPlugin(agentService *core.AgentService) webapi.PluginEntry {
cs: clientSet,
registry: agentRegistry,
}
go plugin.watchAgents(ctx, agentService)
plugin.watchAgents(ctx, agentService)
return plugin, nil
},
}
Expand Down

0 comments on commit 4df57ed

Please sign in to comment.