ExecutionRecord

constructor(taskId: String, startedAt: Long, completedAt: Long, durationMs: Long, state: String, retryCount: Int, error: String?)

Parameters

taskId

The task that was executed.

startedAt

Epoch millis when execution began.

completedAt

Epoch millis when execution finished.

durationMs

How long the execution took.

state

Terminal state: "SUCCESS", "FAILED", "CANCELLED", "TIMED_OUT".

retryCount

How many retries occurred before this result.

error

Error message if the task failed, null otherwise.