Skip to content

[V2] Add pod_name field to TailLogsRequest#7221

Merged
pingsutw merged 7 commits intov2from
add-pod-name-to-tail-logs-request
Apr 21, 2026
Merged

[V2] Add pod_name field to TailLogsRequest#7221
pingsutw merged 7 commits intov2from
add-pod-name-to-tail-logs-request

Conversation

@pingsutw
Copy link
Copy Markdown
Member

@pingsutw pingsutw commented Apr 16, 2026

Tracking issue

Why are the changes needed?

Currently, `TailLogsRequest` only accepts an action execution ID and attempt number, which means the service has to guess which pod to tail logs from. Adding a `pod_name` field allows callers to explicitly specify the target pod, which is useful when an action has multiple pods.

What changes were proposed in this pull request?

Add a `pod_name` field (field number 3) to `TailLogsRequest` in run_logs_service.proto. If not provided, the service will attempt to find the primary pod, else assume the first pod.

Regenerated all language bindings (Go, Python, Rust, TypeScript).

How was this patch tested?

Proto compilation and code generation verified.

Labels

  • added

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Add pod_name field to TailLogsRequest proto to allow specifying which pod
to tail logs from. If not provided, the service will attempt to find the
primary pod, else assume the first pod.

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Comment thread flyteidl2/workflow/run_logs_service.proto Outdated
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
uint32 attempt = 2 [(buf.validate.field).uint32.gt = 0];

// The pod name to tail logs from. If not provided, attempt to find the primary pod, else assume the first pod.
string pod_name = 3;
Copy link
Copy Markdown
Contributor

@katrogan katrogan Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove this? since run logs service is deprecated we shouldn't be updating it anymore

Copy link
Copy Markdown
Member Author

@pingsutw pingsutw Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed it

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
@pingsutw pingsutw self-assigned this Apr 21, 2026
@pingsutw pingsutw added this to the V2 GA milestone Apr 21, 2026
@pingsutw pingsutw merged commit bca5cde into v2 Apr 21, 2026
21 checks passed
@pingsutw pingsutw deleted the add-pod-name-to-tail-logs-request branch April 21, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants