Skip to content

Return the pod name of each run from the Lookout API and the Query API - #5306

Merged
dejanzele merged 0 commit into
lookout-store-run-pod-namefrom
lookout-query-api-pod-name
Oct 19, 2026
Merged

dejanzele merged 0 commit into
lookout-store-run-pod-namefrom
lookout-query-api-pod-name

Conversation

@dejanzele

@dejanzele dejanzele commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

The Lookout API returns the pod name of each run as run.podName, and the Query API returns it as JobRunDetails.pod_name, after pod_name joins the column lists of the Query API queries. The name is empty while the run has no pod.

Lookout does not back-fill the runs that it stored before it stored pod names, because a backfill of job_run takes many hours on a large deployment. Every pod of those runs has the name armada-<jobId>-0. So both APIs return that name for a run with no stored name and a pending time, a start time or an exit code. The ingester sets these only from the events of a pod, so a run without any of them gets no name. The executor can report a fast pod first as running or finished, so the pending time alone is not enough. The fallback is in one function, lookout.RunPodName, which both APIs call. It can go when the Lookout pruner has removed the runs from before #5279.

@mergify

mergify Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 1 of 1 protections blocking · waiting on ⛓️ dependency

Protection Waiting on
🔴 ⛓️ Depends-On Requirements ⛓️ dependency

🔴 ⛓️ Depends-On Requirements

Waiting for

This rule is failing.

Requirement based on the presence of `Depends-On` in the body of the pull request

@greptile-apps

greptile-apps Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; the previous missing-name issue is fixed.

Summary

This PR returns each run’s pod name through the Lookout API and Query API.

  • Lookout and the Query API return each run’s pod name.

Reviews (5) · Last reviewed commit: "Return the pod name of each run from the..." · Reviewed by Greptile

@dejanzele
dejanzele force-pushed the lookout-query-api-pod-name branch from b21777e to 17a3340 Compare October 16, 2026 10:55
@dejanzele
dejanzele force-pushed the lookout-query-api-pod-name branch 2 times, most recently from 6f9b1c5 to 94b63f0 Compare October 17, 2026 15:25
Comment thread internal/server/queryapi/query_api.go Resolved
@dejanzele
dejanzele force-pushed the lookout-query-api-pod-name branch from 94b63f0 to 749c9fd Compare October 19, 2026 13:39
@dejanzele
dejanzele merged commit f144298 into master Oct 19, 2026
@dejanzele
dejanzele deleted the lookout-query-api-pod-name branch October 19, 2026 14:53
@dejanzele
dejanzele force-pushed the lookout-query-api-pod-name branch from 749c9fd to f144298 Compare October 19, 2026 14:53
@mergify

mergify Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

⚠️ The sha of the head commit of this PR conflicts with #5279. Mergify cannot evaluate rules on this PR. Once #5279 is merged or closed, Mergify will resume processing this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant