New RunLLM response generated: >>>*# Question* He...
# runllm-flyte-trial
a
New RunLLM response generated: >>>*# Question* Hey everybody, having some issues with returns from the FlyteAdmin grpc client. We make a request to list all launch plans in a project and received only one in return. (There are more than a 10 listed in the console). Here's the request: we do have a proxy that should forward all protos
Copy code
client = Opus::GrpcClients::Gocode::FlyteAdminProxySrv::AdminServiceClient.new(
        service_name: "flyte-admin-proxy-srv-grpc"
      )
named_entity_identifier = Opus::Autogen::Proto::Flyteidl::Admin::NamedEntityIdentifier.new(
        project: "cost-platform",
        domain: "adhoc"
      )
resource_list_request = Opus::Autogen::Proto::Flyteidl::Admin::ResourceListRequest.new(
        id: named_entity_identifier,
        limit: 50
      )
client.list_launch_plans(resource_list_request)
# Answer The issue might be related to how the request is being made or how the data is being forwarded by the proxy. According to the FlyteAdmin gRPC client documentation, the
ListLaunchPlans
method should return a list of launch plans based on the provided
ResourceListRequest
. 1. Check Filters: Ensure no filters are unintentionally applied. Your request doesn't specify any filters, which is correct if you want all launch plans. 2. Pagination: Ensure the response isn't paginated. The response might include a token for the next set of results if the number of launch plans exceeds the limit. Here's an example request to list all launch plans without filters and with a higher limit to ensure pagination isn't the issue:
Copy code
client = Opus::GrpcClients::Gocode::FlyteAdminProxySrv::AdminServiceClient.new(
  service_name: "flyte-admin-proxy-srv-grpc"
)
named_entity_identifier = Opus::Autogen::Proto::Flyteidl::Admin::NamedEntityIdentifier.new(
  project: "cost-platform",
  domain: "adhoc"
)
resource_list_request = Opus::Autogen::Proto::Flyteidl::Admin::ResourceListRequest.new(
  id: named_entity_identifier,
  limit: 100  # Increase limit to ensure pagination isn't the issue
)
response = client.list_launch_plans(resource_list_request)
launch_plans = response.launch_plans
If the issue persists, check if the proxy is correctly forwarding all requests and responses, and ensure that the FlyteAdmin service is properly configured to handle the requests. Would you like more detailed troubleshooting steps? Sources: - FlyteAdmin gRPC client documentation - FlyteAdmin ListLaunchPlans example Slack Link https://flyte-org.slack.com/archives/CP2HDHKE1/p1720554542.513059 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.