MCPcopy Index your code
hub / github.com/containerd/containerd / Wait

Method Wait

core/runtime/v2/shim.go:788–804  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

786}
787
788func (s *shimTask) Wait(ctx context.Context) (*runtime.Exit, error) {
789 taskPid, err := s.PID(ctx)
790 if err != nil {
791 return nil, err
792 }
793 response, err := s.task.Wait(ctx, &task.WaitRequest{
794 ID: s.ID(),
795 })
796 if err != nil {
797 return nil, errgrpc.ToNative(err)
798 }
799 return &runtime.Exit{
800 Pid: taskPid,
801 Timestamp: protobuf.FromTimestamp(response.ExitedAt),
802 Status: response.ExitStatus,
803 }, nil
804}
805
806func (s *shimTask) Checkpoint(ctx context.Context, path string, options *ptypes.Any) error {
807 request := &task.CheckpointTaskRequest{

Callers

nothing calls this directly

Calls 4

PIDMethod · 0.95
FromTimestampFunction · 0.92
WaitMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected