13219: Checks for expired run time and cancel container if needed.
[arvados.git] / sdk / go / arvados / container.go
index e71bcd5d0da5cdeaebdc6dfd3be05cd81d681d58..1bdf0890230e96c27d9f77ae0239bfdd3b65b403 100644 (file)
@@ -20,6 +20,7 @@ type Container struct {
        OutputPath           string               `json:"output_path"`
        Priority             int                  `json:"priority"`
        RuntimeConstraints   RuntimeConstraints   `json:"runtime_constraints"`
+       StartedAt            time.Time            `json:"started_at"`
        State                ContainerState       `json:"state"`
        SchedulingParameters SchedulingParameters `json:"scheduling_parameters"`
 }
@@ -53,7 +54,8 @@ type RuntimeConstraints struct {
 // such as Partitions
 type SchedulingParameters struct {
        Partitions  []string `json:"partitions"`
-       Preemptable bool     `json:"preemptable"`
+       Preemptible bool     `json:"preemptible"`
+       MaxRunTime  int      `json:"max_run_time"`
 }
 
 // ContainerList is an arvados#containerList resource.