Skip to content

Commit

Permalink
Merge pull request containerd#1525 from crosbymichael/shim-hang
Browse files Browse the repository at this point in the history
Add wait API endpoint for waiting on process exit
  • Loading branch information
stevvooe authored Sep 22, 2017
2 parents 3273315 + d67763d commit fe9d6a4
Show file tree
Hide file tree
Showing 23 changed files with 1,314 additions and 355 deletions.
44 changes: 44 additions & 0 deletions api/next.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3576,6 +3576,45 @@ file {
json_name: "metrics"
}
}
message_type {
name: "WaitRequest"
field {
name: "container_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "containerId"
}
field {
name: "exec_id"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "execId"
}
}
message_type {
name: "WaitResponse"
field {
name: "exit_status"
number: 1
label: LABEL_OPTIONAL
type: TYPE_UINT32
json_name: "exitStatus"
}
field {
name: "exited_at"
number: 2
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
options {
65010: 1
65001: 0
}
json_name: "exitedAt"
}
}
service {
name: "Tasks"
method {
Expand Down Expand Up @@ -3658,6 +3697,11 @@ file {
input_type: ".containerd.services.tasks.v1.MetricsRequest"
output_type: ".containerd.services.tasks.v1.MetricsResponse"
}
method {
name: "Wait"
input_type: ".containerd.services.tasks.v1.WaitRequest"
output_type: ".containerd.services.tasks.v1.WaitResponse"
}
}
options {
go_package: "github.com/containerd/containerd/api/services/tasks/v1;tasks"
Expand Down
Loading

0 comments on commit fe9d6a4

Please sign in to comment.