<#6312 [flytepropeller][flyteagent] Set ListAgent ...
# flyte-github
c
#6312 [flytepropeller][flyteagent] Set ListAgent Timeout to unblock propeller launch execution Pull request opened by Future-Outlier ## Tracking issue #3936 ## Why are the changes needed? We noticed that when propeller starts, it have to wait for the agent get the agent supported task type first, then it can launch execution. However, sometimes the agent server won't response and we will have to wait for a long time, so if we give it timeout. flyte/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go Lines 408 to 411 in</flyteorg/flyte/commit/4df57ed922456679fed1bc86e1e20c30ebd95c25|4df57ed> | clientSet := getAgentClientSets(ctx) | | ------------------------------------------------- | | agentRegistry := getAgentRegistry(ctx, clientSet) | | supportedTaskTypes := maps.Keys(agentRegistry) | | | ## What changes were proposed in this pull request? Set
ListAgents
request timeout to 3s. ## How was this patch tested? single binary. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This PR refines concurrency handling in the Flyte agent plugin by optimizing ListAgents timeout to 3 seconds to prevent propeller execution blocking and adjusting goroutine usage. It enhances gRPC message handling by adding 'grpcMaxRecvMsgSizeMBs: 6' across configurations, improves error handling, and includes documentation updates with clearer AWS/GCP deployment instructions. Unit tests added: False Estimated effort to review (1-5, lower is better): 5 flyteorg/flyte