Introducing a new way to review your PRs.

Read the announcement

armadaproject / armada

A multi-cluster batch queuing system for high-throughput workloads on Kubernetes.

View on GitHub

20 documents · Updated Nov 23, 2026

docs / executor-runtime

Executor runtime

The executor is the per-worker-cluster service that turns scheduler leases into Kubernetes workloads and turns Kubernetes state into Armada job events. It keeps one cluster view for capacity, active runs, pod actions, and outcome reporting, so the scheduler can place work while the control plane can track each run.

Runtime role

The executor sits between the Armada scheduler and one Kubernetes worker cluster. The scheduler assigns runs to an executor identified by cluster and pool; the executor creates the related Kubernetes objects, watches their progress, and sends the result back through the scheduler API.

Each executor normally runs in the worker cluster that it serves. It uses the Kubernetes API for pods, nodes, services, ingresses, and Kubernetes events. It uses the executor gRPC API for two control-plane paths: a lease stream for capacity and run reconciliation, and an event call for job state and diagnostic reports. (See docs/system_overview.md for the deployment model.)

The runtime also keeps an in-memory run state view. It rebuilds that view from existing managed pods when it starts, then combines informer updates with scheduler responses. This lets a restarted executor recover work that still exists in Kubernetes instead of treating the cluster as empty.

Startup validates the scheduling and Kubernetes settings before it starts the runtime. This includes concurrency limits, the relationship between tracked node labels and retry placement labels, well-known taint patterns, and optional diagnostic and startup-timing settings. It then builds the Kubernetes view, optional etcd health monitors, lease and event clients, workload processors, and recurring tasks under one shared shutdown path. An unhealthy monitored etcd cluster stops new work requests so the executor does not add load to a control store that cannot safely support it.

References: cmd/…/main.go• L34-80 internal/…/application.go• L45-118 internal/…/application.go• L121-174 internal/…/application.go• L347-368 internal/…/cluster_context.go• L42-74

Workload lifecycle

The workload lifecycle moves from scheduler lease to Kubernetes submission, then from pod state to Armada events. The executor runs the stages on recurring tasks and pod notifications rather than waiting for one long request to finish.

When the executor asks for work, it reports node capacity, node placement data, current run states, and runs that are not yet assigned to a node. The scheduler uses this view to record executor health and capacity. It returns cancellations, preemptions, and new leases in the same exchange.

The main lifecycle is:

  1. The executor reports its cluster identity, pool, available capacity, node data, and current runs.
  2. The scheduler reconciles those runs with its records. It returns inactive runs to stop and new runs assigned to this executor.
  3. The executor records new runs as leased and submits each workload to Kubernetes. A workload can include a pod and related services or ingresses.
  4. Kubernetes pod updates move the run through pending, running, succeeded, or failed outcomes. The executor converts those changes into Armada event sequences.
  5. The executor sends the event sequences to the scheduler. The control plane consumes them to update the durable job view and downstream readers.
  6. Cancellation and preemption requests cause the executor to report the required outcome and remove the related Kubernetes resources.

The diagram shows the two-way relationship between scheduling control and cluster state.

sequenceDiagram
    participant S as Armada scheduler
    participant E as Executor
    participant K as Kubernetes cluster
    participant P as Armada event stream

    E->>S: Capacity, nodes, and current runs
    S-->>E: Cancel, preempt, and new lease messages
    E->>K: Create pods and related objects
    K-->>E: Pod state and cluster events
    E->>P: Run state and outcome events
    E->>K: Delete cancelled, preempted, or finished resources

References: pkg/…/executorapi.proto• L50-115 internal/…/api.go• L87-205 internal/…/job_requester.go• L54-75 internal/…/cluster_allocation.go• L47-117 internal/…/cluster_allocation_test.go• L25-152

Lease exchange

The lease exchange is a short, bidirectional gRPC stream used as both a work request and an executor liveness signal. The executor sends a snapshot of its cluster view; the scheduler stores that snapshot, marks the executor as heard from, and replies with actions for the next reconciliation step.

The response has three work meanings:

ResponseExecutor effect
New leaseKeep the run locally and prepare its Kubernetes workload for submission.
Cancel listMark matching local runs for cancellation.
Preempt listMark matching local runs for preemption.

The executor limits new leases while it has runs waiting for submission. This prevents the lease buffer from growing beyond the capacity that the submission path can handle. If the cluster health check reports an unhealthy cluster, the executor does not request more work.

References: pkg/…/executorapi.proto• L54-113 internal/…/lease_requester.go• L19-101 internal/…/job_requester.go• L77-121 internal/…/cluster_allocation.go• L47-57 internal/…/application.go• L247-267 internal/…/cluster_allocation_test.go• L67-76

Kubernetes workload ownership

The executor creates the pod that represents the run and then creates any bundled services and ingresses. It adds Armada identity labels and annotations to these objects, and uses the full run identity in service and ingress selectors so resources from two runs cannot be mixed.

The executor applies local values that are unknown when the scheduler first sees the job. These include the target node, pool metadata, a non-restarting pod policy, and executor defaults. It also passes Armada run context into every init and application container, including gang scheduling context when the lease provides it. The Kubernetes client used for pod creation preserves the submitting user's ownership boundary.

The executor tracks objects that were submitted but have not yet appeared in the Kubernetes informer view. This closes the short gap between an API create call and informer observation. Finished or abandoned workloads are deleted through a paced cleanup path. A deletion first receives a normal request; a pod that remains after the configured kill period can receive a force delete. Services and ingresses use object identity preconditions during deletion, so a later run that reused the same name is not removed.

References: internal/…/kubernetes_object.go• L30-151 internal/…/kubernetes_object.go• L165-231 internal/…/cluster_context.go• L271-309 internal/…/cluster_context.go• L366-459 internal/…/cluster_context.go• L471-535

Capacity and node view

The executor reports the cluster view that the scheduler needs to make placement decisions. That view includes node resources, tracked node labels and taints, pool membership, node groups, Armada run states, resources used by non-Armada pods, and current Armada use by queue and pool. It also reports configured minimum non-Armada allocations, which prevents short-lived gaps in system-pod state from making capacity look free. Node-group views track the effect of cordoned nodes.

Node availability excludes unschedulable nodes and nodes with an unrecognized NoSchedule taint. Legacy tolerated taint keys and the reservation taint use exact matching. User-facing and administrator-defined well-known taints can use full-key regular expressions. Recognized taints remain schedulable and are reported with their user or administrator category. All node taints remain visible in the capacity report; an unknown taint can receive the unknown category when that option is enabled. A node type comes from its configured type label when present; otherwise the sorted keys of its recognized taints identify the node group. A node pool comes from its pool label, falls back to the executor pool, and can receive a reserved-node suffix.

For cordoned-node accounting, the executor uses each pod's effective resource request. A pod-level request takes precedence when present; otherwise the request reflects the largest requirement from init containers and the combined requirements from regular containers. The view uses requests rather than limits, so queue fair-share calculations account for the resources reserved by workloads on nodes that no longer accept new work.

The report includes both raw taints and their optional categories. It also maps managed runs to nodes by node name or by a node-identity selector before reporting their state. This gives the scheduler enough context to place new work and to apply retry placement rules without reading the worker cluster directly.

This boundary is important because the scheduler does not inspect the worker cluster directly. A missing or stale report reduces the scheduler's knowledge of capacity and run ownership. Node identity labels and tracked labels must therefore remain aligned with the scheduling contract.

References: pkg/…/executorapi.proto• L13-48 pkg/…/executorapi.proto• L54-72 internal/…/api.go• L434-468 internal/…/node_group.go• L50-155 internal/…/types.go• L146-278 internal/…/cluster_utilisation.go• L76-158 internal/…/cluster_utilisation.go• L161-205 internal/…/cluster_utilisation.go• L260-342

Usage collection

The executor can collect live pod usage for reporting and cluster views. It combines node-level usage with optional custom Prometheus metrics, using ready and serving metric endpoints on worker nodes and matching returned samples to pods through their labels. A failed endpoint or invalid response does not remove valid samples from other endpoints.

This usage view supports queue and pool accounting without changing the scheduler's lease contract. Completed pods return no live usage, while recent terminal pods remain eligible for a short period so the executor can capture their final measurements.

References: internal/…/pod_utilisation.go• L22-129 internal/…/pod_utilisation_custom_metrics.go• L25-70 internal/…/prometheus_scraping.go• L21-118 internal/…/application.go• L139-144 internal/…/application.go• L311-325

Outcome reporting

Outcome reporting converts Kubernetes observations into the event types used by Armada. The executor reports pending assignment, running, success, failure, preemption, lease return, ingress details, selected utilisation data, and optional pod startup timing. Each event includes the run identity and executor identity needed by the control plane. Failed workload events and retryable lease-return events can carry a named failure category, a subcategory, and an operator hint. Optional bounded pod and node diagnostics can accompany failure or teardown reporting without changing the run outcome.

Pod changes are filtered before reporting. The executor ignores unmanaged pods, avoids repeating a phase that it already marked, and avoids reporting a phase caused only by an executor-initiated deletion. Failed-pod handling first gives configured retry checks a chance to claim the issue. If no check claims it, a matched failure category can request deletion before the terminal failure is reported. Classification uses the pod state, the failure message, and pod events when available. If event retrieval fails, the executor still classifies from the pod failure reason and continues the delete-first flow. A read error does not block normal failure reporting.

Events enter a local queue and leave in compact batches. A full batch triggers a send, while a timer flushes a partial batch. The sender splits large batches before calling ReportEvents, while the scheduler publishes the received event sequences into the control-plane event stream. This separates pod update timing from network and broker timing, while preserving the run's event contract.

References: internal/…/job_state_reporter.go• L53-169 internal/…/event.go• L18-127 internal/…/event.go• L222-367 internal/…/job_event_reporter.go• L14-135 internal/…/job_event_reporter_test.go• L23-61 internal/…/event_sender.go• L35-64 internal/…/api.go• L410-420 internal/…/pod_issue_handler.go• L204-255

Startup timing

Startup timing adds an optional timeline to the running event for a pod. It helps operators separate scheduling, node acknowledgement, sandbox setup, image and container startup, and site-specific setup phases without changing the workload outcome. The executor derives the timeline from pod status and Kubernetes events, then leaves a configured phase out when its start or end marker is missing.

The timing view uses the scheduler's bind event when it is available. It falls back to the pod's scheduled condition when that event is absent. It uses the earliest container event or the sandbox-ready condition for sandbox readiness, and it uses the latest first start of the application containers as the end of startup. A container restart does not replace the first start when Kubernetes still exposes the earlier incarnation.

Container image data distinguishes a real pull from an image already cached on the node. Pull duration and wait time apply to a real pull. Cached images can use node image data for size when the Kubernetes event does not include it. The resulting timeline and container details are reported as optional PodStartUpInfo data; an empty measurement produces no timing payload.

Site-specific phases use named start and end markers that match an event reason or message. A marker can select the first matching occurrence or the last one. The executor validates names, match modes, and patterns before it starts, so an invalid timing contract fails early instead of producing misleading measurements. Event time handling supports both kubelet and scheduler event records, including repeated events represented as one aggregated object.

The startup metrics recorder turns the collected timeline into pod- and node-level measurements. It records total startup, built-in and configured step durations, init-container run time, image pull duration, wait time, and image size. It also counts incomplete fields by category so operators can tell the difference between a slow workload and a breakdown that could not be measured. Unnamed init containers use a shared metric label, while configured tracked names keep their identity.

References: internal/…/timings.go• L10-46 internal/…/podtimes.go• L12-129 internal/…/events.go• L12-115 internal/…/recorder.go• L20-141 internal/…/issues.go• L13-118 internal/…/timings_test.go• L19-86 internal/…/podtimes_test.go• L18-311 internal/…/issues_test.go• L14-161

Failure classification

Failure classification gives failed workloads a stable category that the control plane can use for display and analysis. The executor evaluates configured rules in order and uses the first match, then adds an optional user-facing hint and pod disposition to the result.

Rules can use non-zero exit states and termination messages from regular or init containers, a pod-level failure message, a pod failure reason, or Kubernetes pod events. A container rule can target one container. Pod-level rules do not use container names because their input describes the pod as a whole. If no rule matches, the configured default category and subcategory apply.

Failure inputTypical signalResult
Container stateExit code, termination message, or known conditionCategory for a failure attributed to a container.
Pod failure messageImage, volume, deadline, or runtime errorCategory for a failure with no useful container signal.
Kubernetes pod eventAdmission or device-plugin eventCategory for a failure recorded in cluster events.

The configuration is checked before the classifier starts. Rules must use one valid matcher, and category names must be unique, within the reporting data-store limit, and outside Armada's reserved names. Invalid regular expressions, conditions, exit-code matchers, event types, or pod actions prevent startup rather than producing malformed failure data. A matched category can request failed-pod deletion; otherwise the default disposition is retention.

Armada-detected structural issues such as stuck termination, external deletion, an exceeded active deadline, or an issue-handler error use the built-in internal category. Startup and failed-pod issues remain eligible for operator classification because their cause can come from the pod message or Kubernetes events. The older retry checks keep precedence over a category delete action, so a run that matches both follows the lease-return path.

References: internal/…/classifier.go• L14-18 internal/…/classifier.go• L52-71 internal/…/classifier.go• L74-136 internal/…/classifier.go• L149-236 internal/…/classifier.go• L239-263 internal/…/types.go• L5-83 internal/…/doc.go• L6-33 internal/…/pod_issue_handler.go• L204-255 internal/…/pod_issue_handler.go• L601-635

Terminal actions

Cancellation and preemption are control messages from the scheduler that require both a report and a Kubernetes action. The executor reports preemption before it deletes the pod. For cancellation, it removes the pod and keeps a finished reported pod available for inspection rather than deleting it at once.

Failure categories can also set the failed-pod disposition. Retain is the default and keeps the failed pod for log and state inspection. Delete removes a failed pod before the categorized terminal failure is reported, so a scheduler retry cannot collide with the old pod's name. The issue remains owned while the pod is still visible, then reports the captured classification after a later cluster view confirms that the pod is gone. If deletion remains stuck, the executor reports an internal terminal failure instead of retrying the run indefinitely. If any failure report is rejected, the issue remains registered and the failure counter stays unchanged until a later pass succeeds; a rejected stuck-termination escalation does not block deletion, and the original classification is reported after the pod leaves the cluster.

Submission failure has a different meaning from workload failure. If Kubernetes rejects or cannot accept a submission, the executor either returns the lease for a retryable problem or reports a terminal failure for a non-retryable problem. Both paths identify the problem as an internal pod-submission failure, but a lease return uses a lease-return error and a terminal path uses a pod error. If the report itself fails, the local run is removed because Kubernetes never created the pod and the scheduler can lease the run again.

Some teardown paths also emit a diagnostic event with captured pod information. This event is for inspection and does not mark the run as failed or change its state.

References: internal/…/types.go• L19-42 internal/…/pod_issue_handler.go• L638-709 internal/…/pod_issue_handler.go• L711-778 internal/…/preempt_runs.go• L40-110 internal/…/remove_runs.go• L44-80 internal/…/cluster_allocation.go• L89-138 internal/…/cluster_allocation_test.go• L78-152 internal/…/event.go• L213-367 internal/…/failed_pod_handoff_test.go• L23-117 internal/…/failure_report_recovery_test.go• L20-105

Missing event recovery

Kubernetes notifications and event delivery can be delayed or lost. The executor therefore scans active managed pods on a recurring reconciliation interval and reports a current phase that has remained unreported long enough. It uses pod annotations as durable markers for phases and ingress information that it has already emitted.

The same reconciliation view compares local active or submitted runs with managed pods. An active run whose pod stays missing becomes an internal failure after its deadline. A submitted run whose pod never appears is removed from local state so the scheduler can lease it again. These checks close gaps between Kubernetes state, the local event queue, and the control plane without replacing normal pod notifications.

References: internal/…/job_state_reporter.go• L189-273 internal/…/pod_issue_handler.go• L845-937 internal/…/job_run_state_store.go• L43-65 internal/…/cluster_context.go• L191-214 internal/…/pod_util.go• L293-315

Control-plane interfaces

The executor depends on the scheduler's executor API for scheduling and reporting. The API is separate from the user-facing executor administration API: the former carries cluster state and job outcomes, while the latter lets operators change executor settings or request actions through Armada.

InterfaceDirectionPurpose
ExecutorApi.LeaseJobRunsExecutor and schedulerExchange cluster state, new leases, cancellations, and preemptions.
ExecutorApi.ReportEventsExecutor to schedulerSend job state, outcome, diagnostic, ingress, and utilisation events.
Executor administration APIClient to control planeCordon or remove an executor and request cancellation or preemption by executor.

The scheduler authorizes executor calls as job execution actions. The control plane then publishes reported sequences to its event stream, where other services can build their own views. Operators can use the administration API to create control-plane events, but those events reach the worker cluster through the same reconciliation path.

References: pkg/…/executorapi.proto• L106-115 internal/…/api.go• L36-58 pkg/…/executor.proto• L9-71 internal/…/executor.go• L40-216

The page Executor reconciliation and reporting explains the detailed reconciliation rules and event-reporting behavior that support this runtime model. The page Scheduling system explains how the scheduler uses executor capacity and returns work. The page Platform contracts and clients covers the shared API contracts. The page Event ingestion and history follows reported events into durable control-plane history.

Change checklist

When these files or sections are changed, remember to consider these:

  • Changes to lease message kinds or run identity fields must stay aligned between pkg/…/executorapi.proto, the executor lease requester, and the scheduler API.
  • Changes to pod identity labels or annotations must preserve the mapping used by state recovery, event creation, ingress discovery, and cancellation cleanup. Service and ingress selectors must continue to separate runs that reuse object names.
  • Changes to event types, diagnostic payloads, failure categories, or event size limits must preserve the distinction between terminal pod errors and retryable lease-return errors. They must also preserve the executor sender's batching contract and the scheduler's ReportEvents publishing path. Diagnostic capture must remain bounded and must not be mistaken for a workload failure.
  • Changes to retryable submission errors must keep the difference between lease return and terminal failure visible to scheduler state. If event delivery fails before pod creation, local state must still allow the scheduler to lease the run again.
  • Changes to failure categories, hints, or failed-pod actions must preserve the error fields consumed by the control plane and the scheduler's separate retry policy. A delete action must keep the issue owned until pod absence is observed, then report the terminal failure.
  • Changes to pod-level failure inputs must keep classification consistent between the reporter and failed-pod issue handling. Missing Kubernetes events must not prevent classification from pod state or the captured pod error.
  • Changes to node capacity, queue or pool usage, taint categories, node groups, or label reporting must stay aligned with the scheduler's placement and retry rules.
  • Changes to well-known taint patterns must preserve exact matching for legacy keys, full-key matching for configured regex patterns, and the distinction between user-facing, administrator, and reserved categories. Invalid patterns or reserved category names must continue to fail startup.
  • Changes to tracked node labels or retry label settings must preserve the startup rule that every retry-avoid label is present in the tracked label set.
  • Changes to custom usage metric endpoint conditions or pod labels must stay aligned with the metric source and the usage fields consumed by queue and pool reporting.
  • Changes to the submitted-pod cache key or informer merge rules must preserve visibility during the create-to-informer gap without allowing one run to hide another run.
  • Changes to startup timing markers, Kubernetes event timestamp handling, or startup metric field names must preserve the JobRunRunning timing contract, distinguish bind time from kubelet acknowledgement, and keep incomplete measurements visible as collection issues rather than valid zero values.
  • Changes to cached-image size lookup or tracked init-container labels must preserve the difference between real pull metrics, cache-hit metrics, and unknown pull data. Metric labels must remain bounded by configuration.
  • Changes to executor startup tasks or health monitoring must preserve the shared shutdown path and the rule that unhealthy monitored etcd clusters stop new lease requests.

Important failure modes

TriggerConsequenceGuard
The executor stops sending lease requests or cannot reach the scheduler.The scheduler has no fresh capacity or liveness view for that executor.The lease exchange carries the executor snapshot and acts as its liveness signal.
A monitored etcd cluster has too few healthy replicas or exceeds a storage limit.New work is not requested while the cluster may be unsafe for workload control.Optional etcd monitors feed cluster health into lease requesting.
A leased job cannot be submitted to Kubernetes.The run is either offered again or marked failed based on the submission error.Submission errors use an internal pod-submission classification and select a lease-return or pod-error event.
A submission outcome cannot be reported.The local run could otherwise block a retry even though Kubernetes never created its pod.The executor removes local state after the failed report so the scheduler can lease the run again.
A pod update is lost or an event send fails.The control plane can hold a stale run state.Phase markers and periodic missing-event reconciliation allow the executor to resend the current state.
Failure-category rules or well-known taint patterns are invalid.The executor cannot start with a reporting or placement contract it cannot satisfy.Configuration validation checks matchers, categories, taint patterns, reserved categories, and required concurrency limits before runtime.
Retry-avoid labels are absent from tracked node labels.A retry can use placement data that the executor does not report to the scheduler.Startup rejects the configuration when the retry label set is not a subset of the tracked label set.
Pod events cannot be read for a failed pod.Event-based categories cannot match, but a failure event could be lost if reporting depended on those events.The reporter logs the read error and continues with pod state and the captured pod failure message.
A failed pod is already owned by the issue handler.A second terminal failure event can duplicate handling or report the wrong outcome.The reporter stops normal failure emission when the issue handler owns or registers the issue.
A failure report is rejected by the event path.Cleanup or failure counters can advance without a durable outcome if the issue is marked handled too soon.The issue stays registered and counters change only after a successful report; delete-action cleanup can continue while a stuck-termination escalation is retried separately.
A failed pod has a delete action but does not leave the cluster.The executor must not trigger a retry while the old pod can still block the new run.The issue handler keeps ownership until absence is observed, then reports the saved classification; a deletion timeout produces an internal stuck-terminating failure.
A pod lacks Armada identity labels.The executor cannot build a reliable run event or associate related services and ingresses.Managed-pod checks and identifier extraction reject or ignore incomplete objects.
A node is unschedulable or has an unrecognized NoSchedule taint.The scheduler can be told that capacity exists on a node that cannot safely accept Armada work.Availability filters exclude those nodes while well-known taints remain schedulable and visible with their category.
Capacity accounting omits non-Armada use, the configured non-Armada floor, or cordoned-node allocations.The scheduler can make placement or fair-share decisions from an inflated capacity view.The executor reports node allocations, non-Armada priority allocations, node groups, cordoned resource use, and queue/pool usage in the lease snapshot.
Custom metric endpoints are not ready, serving, or parseable.Optional pod usage data is incomplete.Endpoint selection filters unhealthy endpoints, and scrape failures leave successful samples available.
Startup timing markers do not match the pod events or use an invalid pattern.The running event has no measurement for that phase, or the executor cannot start with an invalid timing contract.Both markers must match, and timing configuration is validated before startup.
Kubernetes event timestamps come from different event APIs or an event is aggregated.Startup timeline points can be missing or use the wrong occurrence.Timestamp selection supports kubelet and scheduler fields, while first and last matching modes use the relevant occurrence time.
Startup data is incomplete because pod status or Kubernetes events lack one or more anchors.Startup metrics omit the affected duration or container detail, which can look like a missing workload signal.The timing payload leaves unknown fields unset, while the metrics recorder counts missing fields and logs the incomplete breakdown.
A cached image has no event size or a container pull is not described.Image size or pull success metrics are incomplete, and unknown data could be mistaken for a cache hit.The recorder uses node image data for cache hits when available and labels an absent pull as unknown; collection issues are counted separately.
Diagnostic capture is enabled without bounded pod or node event limits.Failure or teardown reports can carry more data than the event and storage path should handle.The configuration gates capture and limits the event and node metadata included in the diagnostic payload.

Key files

FileWhy to read it
cmd/…/main.goShows the process entry point, configuration load, health endpoints, and shutdown path.
internal/…/application.goShows how validation, cluster context, health monitoring, lease handling, submission, reporting, cleanup, and periodic tasks form one runtime.
pkg/…/executorapi.protoDefines the scheduler-facing lease and event contracts.
internal/…/cluster_context.goDefines the executor's view of Kubernetes resources, informer state, transient submission tracking, and object actions.
internal/…/job_requester.goShows how capacity becomes a lease request and how scheduler responses enter local run state.
internal/…/cluster_allocation.goShows how leased runs become Kubernetes submissions and how recoverable and non-recoverable submission errors become different Armada outcomes.
internal/…/cluster_allocation_test.goVerifies lease filtering, health gating, and the retryable versus terminal submission contract.
internal/…/job_state_reporter.goShows how pod state becomes reported Armada outcomes and how missing events are recovered.
internal/…/pod_issue_handler.goShows how failed, stuck, missing, externally deleted, or delete-action pods are claimed, cleaned up, classified, and reported.
internal/…/failed_pod_handoff_test.goVerifies that a delete-action failure stays owned until Kubernetes confirms pod absence, then reports the saved classification once.
internal/…/failure_report_recovery_test.goVerifies that failed reports do not release issue ownership or advance failure counts, while delete-action cleanup still completes after an escalation report failure.
internal/…/event.goShows how pod phases, failures, lease returns, utilisation, ingress details, and diagnostic outcomes become Armada events.
internal/…/job_event_reporter.goShows the local event queue and the boundary between event production and event sending.
internal/…/job_event_reporter_test.goVerifies that full event batches send at once and partial batches flush on the batch timer.
internal/…/event_sender.goShows the boundary that batches and sends executor events to the scheduler.
internal/…/timings.goShows how optional pod startup measurements become part of the running outcome.
internal/…/podtimes.goShows how pod status and event data define the main startup timeline anchors.
internal/…/events.goShows how Kubernetes event timestamps, repeated events, and container event groups support startup measurements.
internal/…/recorder.goShows how startup timelines become pod- and node-level metrics with bounded container labels.
internal/…/issues.goShows how incomplete startup fields become collection counters and operator messages.
internal/…/types.goDefines failure categories, matching inputs, user hints, and failed-pod retention or deletion policy.
internal/…/classifier.goShows how failed pod data becomes the first matching category and how invalid configuration is rejected.
internal/…/types.goDefines executor settings for cluster identity, node and taint interpretation, health monitoring, workload checks, diagnostics, and reporting options.
internal/…/node_group.goShows how node availability, pool membership, taint-derived types, and node groups support placement.
internal/…/kubernetes_object.goShows how leases become identity-bearing pods and run-scoped services or ingresses.
internal/…/pod_util.goDefines managed-pod identity, run keys, terminal markers, and pod-state helpers used during reconciliation.
internal/…/cluster_utilisation.goShows how node capacity, non-Armada allocation, taints, node groups, queue and pool usage, and cordoned-node capacity become the executor's cluster view.
internal/…/prometheus_scraping.goShows the boundary for optional custom usage metrics collected from Kubernetes metric endpoints.
internal/…/api.goShows how the scheduler stores executor state, returns work, and publishes executor events.