X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/469ea187586ea8017e26874c2d80414ce7571fae..f5fd7e2dc13b912e1032a54119f3fb60973f77e2:/lib/crunchrun/executor.go diff --git a/lib/crunchrun/executor.go b/lib/crunchrun/executor.go index 1ed460acd9..308b05cdeb 100644 --- a/lib/crunchrun/executor.go +++ b/lib/crunchrun/executor.go @@ -4,10 +4,10 @@ package crunchrun import ( + "context" "io" "git.arvados.org/arvados.git/sdk/go/arvados" - "golang.org/x/net/context" ) type bindmount struct { @@ -51,8 +51,9 @@ type containerExecutor interface { // Start the container Start() error - // CID the container will belong to - CgroupID() string + // Process ID of a process in the container. Return 0 if + // container is finished or no process has started yet. + Pid() int // Stop the container immediately Stop() error