ExecutionMetadata

@Serializable
data class ExecutionMetadata(val startedAt: String, val completedAt: String? = null, val completed: Boolean = false, val podName: String? = null, val spendLimit: JsonElement? = null, val retries: JsonElement? = null)

Metadata about the runtime environment and lifecycle of an experiment execution (training session or evaluation run).

Constructors

Link copied to clipboard
constructor(startedAt: String, completedAt: String? = null, completed: Boolean = false, podName: String? = null, spendLimit: JsonElement? = null, retries: JsonElement? = null)

Types

Link copied to clipboard
object Companion

Factory for ExecutionMetadata instances.

Properties

Link copied to clipboard
val completed: Boolean = false

Whether the runner finished processing successfully (set to true alongside completedAt). Remains false if the process was interrupted, crashed, or was aborted mid-run.

Link copied to clipboard
@EncodeDefault(mode = EncodeDefault.Mode.NEVER)
val completedAt: String? = null

ISO 8601 timestamp of when the runner finished processing; null while still in progress.

Link copied to clipboard
@EncodeDefault(mode = EncodeDefault.Mode.NEVER)
val podName: String? = null

Kubernetes pod name (set in cluster runs, null in local runs).

Link copied to clipboard
@EncodeDefault(mode = EncodeDefault.Mode.NEVER)
val retries: JsonElement? = null

The retry policy configured for this execution at session start, stored as opaque JSON like spendLimit.

Link copied to clipboard
@EncodeDefault(mode = EncodeDefault.Mode.NEVER)
val spendLimit: JsonElement? = null

The spend cap configured for this execution at session start, stored as the opaque JSON the caller persisted (the library is provider-agnostic, so the concrete config shape lives in the consuming application).

Link copied to clipboard

ISO 8601 timestamp of when the runner started processing.

Functions

Link copied to clipboard

Returns a copy marked completed now: completed set to true and completedAt to the current instant.