Lookout query services
Lookout is Armada's query service and read model for job history. The Lookout ingester reads job-set events from Pulsar and turns them into current job, job-run, job-spec, error, and run-startup data in PostgreSQL. The Lookout API then serves this data to the UI and other clients through filters, groups, history views, and detail requests.
System role
Lookout separates event capture from fast user queries. The event store keeps the source history, while Lookout keeps a query-focused view of job state and run history. See Event store and ingestion for the event-history side and Event ingestion and job history for the wider flow.
This diagram shows the two main paths through the system.
flowchart LR
E[Pulsar job-set events] --> I[Lookout ingester]
I --> R[Lookout read model in PostgreSQL]
R --> Q[Lookout query services]
Q --> C[UI and API clients]
E --> H[Event store]
H --> HC[History consumers]
Lookout has two long-running responsibilities. The ingester keeps the read model current, while the API reads that model without rebuilding state from the full event stream for each request.
References: internal/…/doc.go• L1-5 internal/…/ingester.go• L26-28
Read model
The Lookout read model stores one current record for each job and a set of records for its execution attempts. A job describes user-facing identity and state. A job run describes where and how one attempt progressed. Separate records hold large job specifications, job-level errors, and structured run-startup data so normal job searches stay smaller.
Job and run records
The job view includes queue, owner, job set, namespace, resource requests, priority, annotations, state, cancellation data, action actors, and the latest run link. The action actors record who first preempted a job and who last changed its priority. The run history includes run state, cluster, node, pool, pod identity, timing, exit code, ingress addresses, and failure classification. The API returns the job with its runs and derives a few top-level values from the last run, such as runtime and execution location.
The model also keeps data that supports investigation. Job specs can be fetched as the original job object. Job errors, run errors, and run debug messages can be fetched by ID. Run-startup information is kept by run in a separate record. Scheduler termination reasons remain structured data and are exposed through a separate detail request.
References: internal/…/model.go• L27-56 internal/…/model.go• L83-87 internal/…/model.go• L94-108 internal/…/001_initial_schema.sql• L1-35 internal/…/011_add_job_error.sql• L1-5 internal/…/013_add_job_spec_table.sql• L1-6 internal/…/032_add_failure_category_to_job_run.sql• L1-2 internal/…/034_add_scheduler_termination_reason.sql• L1 internal/…/036_add_preempt_and_reprioritize_users.sql• L1-5 internal/…/038_create_job_run_info.sql• L1-5 internal/…/039_add_job_run_pod_name.sql• L1-2
Instruction processing
The ingester converts each event sequence into an instruction set. An instruction set is a group of creates and updates for jobs, runs, job errors, and run-startup information, plus the source Pulsar message IDs needed for acknowledgement. This gives the database writer a small, ordered description of the state changes instead of the full event format.
The converter maps the event types that affect the read model to state and detail changes:
- A submit event creates a queued job and stores its spec, resource requests, priority, annotations, and external URI. The job object's external URI supplies the value, which supports both the first-class event field and the legacy annotation form.
- Lease and assignment events create or prepare a run and link it as the job's latest run.
- Running, success, cancellation, preemption, requeue, and error events update job or run state and times.
- A running event stores structured pod-startup information when it is present. This supports later run investigation without putting the full payload in the main run row.
- Cancellation, preemption, and reprioritisation events keep their requestor when the event supplies one. The job view preserves the first preemption actor and the latest reprioritisation actor.
- Cancellation and preemption runs keep a structured termination reason. The record can include the requestor or the job that caused a fair-share preemption, and a cancellation with no reason uses a fallback reason.
- Error and debug data is kept for later detail queries. Ingress data and failure categories are added when the event provides them. A terminal preemption error adds only the failure classification because the separate preemption event owns the run state and error text.
- A termination debug event stores diagnostic text only. It does not set the run state, finish time, error text, exit code, or node because the run cancellation event owns those values.
- Events that do not change the Lookout view are ignored. Unknown events are logged rather than treated as valid state changes.
The converter limits stored text sizes and removes blocked annotations. It removes null bytes from annotation keys and values before storing them as JSON data. It also makes startup information safe for PostgreSQL JSON data. It compresses job specs and large messages before they reach PostgreSQL. This keeps the query rows useful for search while leaving large payloads available on demand.
References: internal/…/instructions.go• L71-145 internal/…/instructions.go• L149-243 internal/…/instructions.go• L397-429 internal/…/instructions.go• L488-521 internal/…/instructions.go• L533-606 internal/…/instructions.go• L609-654 internal/…/instructions_test.go• L644-689 internal/…/instructions_test.go• L863-887 internal/…/instructions_test.go• L980-1029 internal/…/instructions_test.go• L1110-1163
Database write path
The Lookout database writer applies an instruction set in dependency order. It creates jobs and job specs first. It then applies job changes, creates runs, job errors, and run-startup information. It finally updates existing runs. This order ensures that later changes can refer to rows created in the same batch.
The writer combines repeated updates for the same job or run before writing. It keeps only the latest startup-information instruction for a run because the database upsert must not update one row twice in one statement. The writer favors a fast batch write and falls back to one-row writes when the batch path fails. Batch and scalar run updates share the same field mapping, so pod identity, timing, state, errors, diagnostics, ingress data, failure classification, and termination reasons reach the same database columns in either path. Retryable database errors use backoff. A non-retryable row error is logged so other rows can proceed, but context cancellation stops the work and returns an error.
Run updates have a shared persistence contract across batch, scalar, fallback, and full-store paths. An omitted field keeps its stored value, while an explicit empty or zero value replaces it. An update changes an existing run only; it does not create a run for an unknown ID. The same update can be replayed, and incoming timestamps replace stored timestamps rather than being limited to newer values. These rules apply to both the ordinary and hot/cold database layouts.
Terminal job state is protected from later status events. The writer filters updates for jobs that are already terminal, while still allowing actor information and the special preemption transition to be recorded. Run updates can still be accepted for that job, so late run detail does not have to be discarded with the blocked job-state update.
The return value controls Pulsar acknowledgement. A completed write can be acknowledged. A cancelled write must not be acknowledged because redelivery is needed to avoid a stale job in the read model.
References: internal/…/insertion.go• L38-100 internal/…/insertion.go• L141-198 internal/…/insertion.go• L835-978 internal/…/insertion.go• L1166-1421 internal/…/insertion_test.go• L717-768 internal/…/insertion_test.go• L788-825 internal/…/insertion_test.go• L875-965 internal/…/insertion_test.go• L1033-1175 internal/…/run_update_contract_test.go• L20-35 internal/…/run_update_contract_test.go• L106-235 internal/…/run_update_contract_test.go• L237-314
Query services
The API layer turns client requests into repository calls against the PostgreSQL read model. The repositories validate the requested fields and matches before building a query, then convert database rows into the API's job, run, group, or detail models.
Job searches
The job search service returns jobs with their complete run list. Clients can filter by job fields, selected latest-run fields, or user annotations. They can sort, paginate, and restrict results to active job sets. An active job set contains jobs in a non-terminal state such as queued, pending, running, or leased. The read model has a database index for leased-state access, which supports this query path without changing its result semantics.
Run filters have two scopes. A runId filter matches a job when any stored run has that ID. Other run fields such as cluster, node, or pool apply to the job's latestRunId, not to any run in its full history. The response still includes all stored runs so the caller can inspect earlier attempts.
When a row is read, the repository restores annotations and the full run list. It derives the job's node, cluster, pool, exit code, and runtime from the last run. Runtime is measured to the current time while a run is active and to its finish time after completion. Runs are returned from oldest to newest.
References: internal/…/getjobs.go• L18-20 internal/…/getjobs.go• L69-150 internal/…/querybuilder.go• L62-225 internal/…/querybuilder.go• L486-599 internal/…/tables.go• L91-166 internal/…/convert.go• L15-68 internal/…/getjobs_test.go• L210-265 internal/…/getjobs_test.go• L2356-2477 internal/…/037_create_job_run_leased_idx.sql• L1-2
Job groups
The group service applies the same job and latest-run filters before it groups results. It returns a group name, a job count, and requested aggregate values. Clients can group by supported job or run fields, and by annotation keys when the annotation exists.
State aggregates return counts per state. The service also supports field-specific aggregates, including minimum submitted time and a selected earliest, latest, or average value for last transition time. Group order and pagination apply to groups rather than individual jobs.
References: internal/…/groupjobs.go• L18-31 internal/…/groupjobs.go• L52-89 internal/…/groupjobs.go• L91-164 internal/…/tables.go• L160-190 internal/…/fieldparser.go• L113-139 internal/…/querybuilder.go• L229-330
Detail queries
Detail services load data that is not needed in every search result. A job-spec request returns the stored job object. Job-error and run-error requests return stored error text. A run-debug request returns diagnostic text. A scheduler-termination request returns the structured reason recorded for the run. Run-startup information is stored for the same history and detail use case, separate from the normal search row.
A run-debug request also exposes an optional structured view of the stored diagnostic text. Lookout accepts a pod diagnostic payload only when it has supported schema version 1 data, a trigger, and a pod. The view can include pod containers and events plus node state, conditions, metadata, and events. Invalid or unsupported diagnostic text is not discarded: the raw message is returned and the structured view is omitted. Null entries in diagnostic lists are removed so one incomplete record does not hide the other captured data.
These payloads are compressed when stored and decompressed when read where applicable. A missing job, run, error, or spec is reported as a not-found error and is returned through the API error response.
References: internal/…/getjobspec.go• L17-60 internal/…/getjoberror.go• L15-45 internal/…/getjobrunerror.go• L15-45 internal/…/getjobrundebugmessage.go• L15-45 internal/…/getjobrunschedulerterminationreason.go• L13-35 internal/…/038_create_job_run_info.sql• L1-5 internal/…/debuginfo.go• L9-27 internal/…/debuginfo_test.go• L35-119 internal/…/application.go• L126-137
API boundary
Lookout exposes a versioned REST API for searches, groups, job and run details, health, and version information. The API contract is defined in internal/…/swagger.yaml. Server code, the embedded specification, and data types are generated from that contract, then wired to the PostgreSQL repositories by the Lookout application.
The main search request carries filters, order, active-job-set selection, and pagination. The group request adds a grouped field and aggregate list. Detail requests use a job ID or run ID. The run-debug response carries the stored message and an optional structured pod-diagnostics object. Job responses include actor fields for cancellation, preemption, and reprioritisation. Run responses include execution timing, pod identity, ingress addresses, and failure classification. The conversion layer also changes integer ingress ports into string JSON keys. The application applies configured authentication, CORS, and optional TLS before serving requests.
The Lookout UI uses the search and group endpoints as server-side data sources. It sends a job request for leaf rows and a group request for each grouping level. It keeps filters, sort order, grouping, expanded rows, pagination, visible columns, and the selected job in the page state so a refresh can rebuild the same view.
This diagram shows how a client request reaches a read model result.
sequenceDiagram
participant Client
participant API as Lookout API
participant Repo as Query repository
participant DB as PostgreSQL read model
Client->>API: Search, group, or detail request
API->>Repo: Validated domain request
Repo->>DB: Read job, run, or detail data
DB-->>Repo: Rows and stored payloads
Repo-->>API: Lookout model
API-->>Client: JSON response
References: internal/…/swagger.yaml• L9-145 internal/…/swagger.yaml• L309-464 internal/…/swagger.yaml• L505-707 internal/…/job_run_debug_message.go• L17-27 internal/…/pod_debug_info.go• L18-37 internal/…/embedded_spec.go• L212-260 internal/…/get_job_run_debug_message.go• L37-60 internal/…/get_job_run_debug_message_responses.go• L16-59 internal/…/convert.go• L15-139 internal/…/convert_test.go• L152-176 internal/…/application.go• L29-54 internal/…/application.go• L68-175 internal/…/application.go• L180-205 internal/…/main.go• L12-31
Jobs table
The Lookout jobs table turns query results into a searchable view of current jobs and their run context. It keeps the expensive work on the query service while adding UI controls for filters, groups, sort order, column views, refresh, selection, and job actions.
Query controls
The table maps visible columns to Lookout fields and sends supported text, enum, numeric, annotation, and submitted-time filters to the API. Numeric values are parsed before the request. The table also maps user sort choices to job or group order fields and can limit results to active job sets.
Some filters have prerequisites. A job-set or namespace filter requires a queue filter. If a prerequisite is removed or empty, the table removes dependent filters and offers an undo action. The filter action on a cell is available only when the resulting filter can remain valid.
References: internal/…/jobsTableColumns.tsx• L100-120 internal/…/jobsTableColumns.tsx• L628-711 internal/…/jobsTableUtils.ts• L34-61 internal/…/JobsTableCell.tsx• L231-251 internal/…/JobsTableContainer.tsx• L720-787
Grouped results
Grouping is a server-side view over the same filtered job set. The table can request several group levels, then fetch child groups or jobs when a group expands. Queue must precede job set or namespace in the grouping path. The table uses group counts and requested aggregates to show summary rows, then loads more children when a group has more jobs than the current page.
The UI can group by annotations as well as standard fields. It requests state counts and time aggregates when those columns are visible. A grouping change clears expansion and selection because the old row tree no longer describes the new query.
References: internal/…/jobsTableColumns.tsx• L108-120 internal/…/GroupBySelect.tsx• L82-106 internal/…/GroupBySelect.tsx• L138-195 internal/…/useJobsTableData.ts• L158-218 internal/…/JobsTableContainer.tsx• L588-645 internal/…/JobsTableContainer.tsx• L1219-1243
Selection and actions
Selection represents filters rather than only the rows currently loaded in the browser. Selecting a group creates a group filter and excludes its visible child groups when needed. This lets actions such as cancel, reprioritise, and preempt target a large result set without loading every job into the table.
The table opens a sidebar for a selected job and keeps its view state in query parameters. Manual refresh and optional auto-refresh fetch the current root rows and any expanded groups again. A refresh clears selection but keeps the user's filters and grouping.
References: internal/…/jobsTableUtils.ts• L131-170 internal/…/JobsTableActionBar.tsx• L99-223 internal/…/JobsTableContainer.tsx• L242-369 internal/…/JobsTableContainer.tsx• L408-443 internal/…/JobsTableContainer.tsx• L824-837
Retention and repair
The pruner controls the lifetime of data in the Lookout read model. It first repairs old state mismatches, then removes old terminal jobs and their related rows, and finally removes expired job-deduplication records.
A zombie job is a job whose state is still non-terminal even though its latest run ended in a terminal state. After a grace period, the pruner changes the job state and transition time to match the finished run. It does not repair a run with no finish time because that record does not prove that the run ended.
Terminal jobs are selected by transition age and deleted in batches. Their job specs, runs, run-startup information, and job errors are deleted with them. In a hot/cold schema, the pruner selects terminal jobs from the terminated set while leaving active jobs in the active set. The job lifetime and deduplication lifetime are independent settings, so a job can leave the read model while deduplication data follows its own retention window.
References: internal/…/doc.go• L1-16 internal/…/pruner.go• L16-42 internal/…/pruner.go• L56-162 internal/…/reconcile_zombies.go• L92-145 internal/…/pruner_test.go• L136-207 internal/…/types.go• L41-64
Query contract
The query contract is the shared boundary between event meaning, stored state, and client behavior. A state added to event processing must have a stable read-model value and an API representation. A field exposed to clients must also have a known table, supported filter or sort behavior, and a matching row conversion.
The query builder rejects unknown fields, unsupported matches, invalid sort directions, and invalid aggregate choices before it sends SQL to PostgreSQL. The field map also defines query scope: runId is a job-level filter that searches all runs, while other run fields join to the job's latest run for job searches. Annotation filters have a separate path because annotations are stored as JSON data rather than ordinary columns.
The UI maintains the same contract at its table boundary. It exposes only fields with known server mappings, keeps prerequisite rules for filters and groups, and converts group and job responses into one row tree. A change to a server field or match must therefore preserve both the API request shape and the table's column and row behavior.
References: internal/…/tables.go• L58-190 internal/…/querybuilder.go• L486-599 internal/…/querybuilder.go• L768-907 internal/…/model.go• L7-25 internal/…/getjobs_test.go• L239-265 internal/…/useJobsTableData.ts• L65-133 internal/…/jobsTableUtils.ts• L172-265
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to event types or state values must stay aligned across instruction conversion, state maps, database columns, API enums, zombie repair, and active-job-set selection.
- Changes to a job or run field must cover the instruction model, batch and scalar writes, query row scans, response conversion, and the Swagger contract.
- Changes to run-update write paths must preserve nil-as-no-change behavior, explicit empty and zero replacements, no creation for unknown run IDs, replay behavior, and both ordinary and hot/cold database layouts.
- Changes to run-startup information must keep the event conversion, JSON-safe storage, run-ID uniqueness, upsert behavior, detail query, and pruning path aligned.
- Changes to the run pod identity must distinguish the executor-reported pod name from the node name and carry the field through its storage and read paths.
- Changes to filter, sort, group, or aggregate fields must update the query capability map and any database support needed for the expected query shape.
- Changes to
runIdfiltering must preserve its any-run meaning, while cluster, node, and pool filters must keep their latest-run meaning. - Changes to active-job-set filtering must keep the leased-state query path and its database support aligned with the state values used by the query builder.
- Changes to compressed payloads must keep the ingester compressor compatible with the detail-query decompressor and the stored byte columns.
- Changes to terminal-state handling must be checked against late events, update conflation, terminal-job filtering, zombie repair, and pruning.
- Changes to run failure classification must preserve the terminal-only classification update for preemption errors without replacing the state or error text owned by the preemption event.
- Changes to cancellation, preemption, or reprioritisation actors must preserve whether the actor is first-write or latest-write data. The event requestor, instruction field, database column, row scan, and API response must agree.
- Changes to termination-reason fields must preserve the stored reason and argument shape used by detail queries, including fallback cancellation reasons and fair-share preemption data.
- Changes to diagnostic run events must keep debug-only updates separate from the state and error updates owned by terminal run events.
- Changes to structured run-debug data must keep the supported schema version, required fields, raw-message fallback, nested diagnostic model, endpoint response, embedded specification, and generated API types aligned.
- Changes to annotation handling must preserve prefix removal, blocklist behavior, JSON-safe values, length limits, and the JSON query path.
- Changes to internal/…/swagger.yaml require regeneration of the generated API server, embedded specification, operation responses, and models before the application wiring can use the new contract.
- Changes to retention or hot/cold table selection must preserve the link between job deletion and its run, spec, run-startup information, and error data.
- Changes to a table field or match must update its server field mapping, displayed column metadata, parser, prerequisite rules, and query-parameter restore path.
- Changes to groupable fields must keep the UI prerequisite order aligned with the group request, aggregate mapping, expanded-row fetches, and row selection filters.
- Changes to selected-row behavior must preserve the filter-and-exclude representation used by bulk actions, including selections made on collapsed groups.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| An event has no creation time or an unknown event type | The affected state change is skipped, so the read model can remain behind the event stream. | The converter records or logs the processing issue and keeps processing the sequence. |
| A terminal preemption error has no failure classification | The run keeps its state and error text from the preemption event but has no failure category for classification queries. | The converter adds a classification update only when the error is terminal and has a category or subcategory. |
| A diagnostic termination event is allowed to set run state or finish time | It can race with the cancellation event and replace the authoritative run state or timing. | The converter stores only debug text, while the cancellation event owns terminal state and finish time. |
| Startup information contains JSON data that PostgreSQL rejects | The run-startup detail is not stored even though the main run event can be valid. | The converter sanitizes the structured payload before it creates the JSON record. |
| Annotation keys or values contain a null byte | PostgreSQL rejects the JSON data, so the job instruction can fail to write. | The converter removes null bytes before it stores annotations. |
| A stored run-debug message is not valid schema version 1 data or lacks its required pod fields | The API returns the original diagnostic string without structured debug information. | The debug conversion checks the schema version, trigger, and pod before exposing the structured view. |
| A valid debug payload contains null entries in pod or node lists | An incomplete entry can reach the client and break response validation or UI rendering. | The debug conversion removes null list entries while keeping valid diagnostic records. |
| Database work is cancelled during shutdown | The related Pulsar messages must be redelivered; acknowledging them would leave stale Lookout rows. | The writer returns the context error and the ingestion pipeline uses that result for acknowledgement. |
| A job receives a late status event after it became terminal | A terminal job can be moved back to a live state and appear as a zombie. | The writer conflates updates and filters known terminal jobs. A database lookup failure weakens this guard and is logged. |
| A stored spec, error, or debug payload cannot be decompressed | The related detail request fails even though the main job row may still be readable. | The detail repository checks decompression and returns the error instead of returning corrupt text. |
| A run-startup record is written more than once in one batch | PostgreSQL can reject the batch because the same target row would be updated twice. | The writer keeps the latest instruction for each run before the upsert. |
| An update path maps omitted run fields to replacements | A partial run update can erase existing values, including SQL NULL fields. | The shared batch and scalar value mapping preserves the run-update contract and tests every write path in both database layouts. |
| An update path creates a row for an unknown run ID | The read model contains a run that has no matching run-creation event. | Run updates target existing rows only, and the persistence contract checks that unmatched updates do not increase the row count. |
| A non-retryable run-row error occurs during a multi-row update | The batch path reports an error, while scalar and fallback paths can persist the valid rows and discard the ordinary row error. | The run-update contract checks each write path's error and partial-persistence behavior. |
| A cancelled context reaches a run update | The update must not persist, and acknowledging its source message could leave stale state. | All run-update paths return the cancellation error without changing the existing row. |
| The latest terminal run has no finish time | Zombie repair cannot establish when the run ended and leaves the job unchanged. | The pruner counts and reports these rows for investigation. |
| A terminal job passes its retention age | The job and its related spec, runs, run-startup information, and errors are no longer available through Lookout. | The pruner selects only terminal states and deletes related rows in controlled batches. |
A runId filter is treated as a latest-run filter | A job that has the requested ID only in an earlier run is omitted from search results. | The query builder resolves runId through all stored runs, while other run filters use the latest run. |
| A dependent UI filter or group is used without its prerequisite | The request is removed or cannot express the intended scope. | The table disables the control until prerequisites exist and prunes stale state with an undo action. |
| A group or expanded-row request uses a field mapping that does not match the API | The table can show empty groups, wrong aggregates, or stale child rows. | The UI maps group levels and aggregates explicitly and refetches the affected row tree after state changes. |
| An actor field is added to one write path but not the read or API path | Lookout can show missing or stale action history even though the event was processed. | The actor fields are carried through conversion, conflation, database writes, row scans, model conversion, and the generated API contract. |
Key files
| File | Why to read it |
|---|---|
| internal/…/ingester.go | Shows the ingester assembly from Pulsar input through instruction conversion to the database sink. |
| internal/…/instructions.go | Defines how job, run, state, error, actor, startup, and diagnostic events become read-model changes. |
| internal/…/insertion.go | Shows write ordering, update coalescing, retry behavior, terminal-event protection, run-info upserts, shared run-update field mapping, and acknowledgement safety. |
| internal/…/run_update_contract_test.go | Defines the shared run-update persistence contract across write paths and ordinary or hot/cold database layouts. |
| internal/…/model.go | Defines the instruction-set boundary between event conversion and database writes. |
| internal/…/application.go | Connects the REST API operations to repositories and service controls. |
| internal/…/querybuilder.go | Defines the supported search, any-run ID filtering, latest-run filtering, grouping, aggregate, and pagination behavior. |
| internal/…/getjobs.go | Shows how job rows and all run history become the query response. |
| internal/…/getjobs_test.go | Shows the contract for run history order, any-run ID filters, latest-run details, active job sets, runtime, and supported search fields. |
| internal/…/groupjobs.go | Shows how grouped results and aggregate values become API groups. |
| internal/…/tables.go | Defines the shared field, table, filter, sort, group, and aggregate capabilities. |
| internal/…/swagger.yaml | Defines the public request and response contract for Lookout clients, including structured run diagnostics. |
| internal/…/debuginfo.go | Defines when stored run diagnostics become structured pod and node data in the API response. |
| internal/…/debuginfo_test.go | Shows the compatibility and fallback rules for structured run diagnostics. |
| internal/…/embedded_spec.go | Carries the generated API specification used by the running service. |
| internal/…/get_job_run_debug_message.go | Shows the generated request boundary for run-debug queries. |
| internal/…/job_run_debug_message.go | Shows the generated response that carries raw and structured run-debug data. |
| internal/…/pod_debug_info.go | Shows the generated top-level structured diagnostic model. |
| internal/…/run.go | Shows the generated run response shape, including pod identity and failure classification. |
| internal/…/convert.go | Maps the internal read model to the generated API response. |
| internal/…/036_add_preempt_and_reprioritize_users.sql | Defines the database fields for preemption and reprioritisation actors. |
| internal/…/038_create_job_run_info.sql | Defines the separate read-model record for structured run-startup information. |
| internal/…/039_add_job_run_pod_name.sql | Defines storage for the executor-reported pod name. |
| internal/…/037_create_job_run_leased_idx.sql | Supports active-job-set queries that filter job runs by leased state. |
| internal/…/pruner.go | Defines retention order and deletion behavior for the read model. |
| internal/…/reconcile_zombies.go | Defines repair behavior for jobs whose state and latest run disagree. |
| internal/…/JobsTableContainer.tsx | Coordinates the UI query state, refresh cycle, grouping, selection, and job table display. |
| internal/…/useJobsTableData.ts | Maps table state to job and group API requests and merges paged results into the visible row tree. |
| internal/…/jobsTableColumns.tsx | Defines the fields, filters, sort choices, group prerequisites, and annotation columns exposed by the table. |
| internal/…/jobsTableUtils.ts | Defines filter pruning, group-path filters, and bulk-selection filters. |
| internal/…/GroupBySelect.tsx | Shows how the UI enforces valid group order and manages multi-level groups. |