X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3fa6aa4043286ad61e5f29c136d3cc2942e8750d..28a733a8823fedadc34a560935abdd17039cb100:/lib/crunchrun/executor.go diff --git a/lib/crunchrun/executor.go b/lib/crunchrun/executor.go index 1ed460acd9..29abab631f 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,10 @@ 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 or + // negative if container is finished or no process has started + // yet) + Pid() int // Stop the container immediately Stop() error