summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-proto/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-proto/src/main')
-rw-r--r--opendc-web/opendc-web-proto/src/main/kotlin/org/opendc/web/proto/runner/Job.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-proto/src/main/kotlin/org/opendc/web/proto/runner/Job.kt b/opendc-web/opendc-web-proto/src/main/kotlin/org/opendc/web/proto/runner/Job.kt
index dfaaa09e..4f21f0bb 100644
--- a/opendc-web/opendc-web-proto/src/main/kotlin/org/opendc/web/proto/runner/Job.kt
+++ b/opendc-web/opendc-web-proto/src/main/kotlin/org/opendc/web/proto/runner/Job.kt
@@ -36,11 +36,16 @@ public data class Job(
val state: JobState,
val createdAt: Instant,
val updatedAt: Instant,
+ val runtime: Int,
val results: Map<String, Any>? = null
) {
/**
* A request to update the state of a job.
+ *
+ * @property state The next state of the job.
+ * @property runtime The runtime of the job (in seconds).
+ * @property results The results of the job.
*/
@Schema(name = "Runner.Job.Update")
- public data class Update(val state: JobState, val results: Map<String, Any>? = null)
+ public data class Update(val state: JobState, val runtime: Int, val results: Map<String, Any>? = null)
}