X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7be9cb0ae8aeb5a49d5450aa38ff9f652761c2d3..e1c0d7735e1c3655628611a334ea794e76df1138:/lib/crunchrun/executor.go diff --git a/lib/crunchrun/executor.go b/lib/crunchrun/executor.go index dc1bc20b7c..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 @@ -60,6 +61,8 @@ type containerExecutor interface { // Release resources (temp dirs, stopped containers) Close() - // Name of runtime engine ("docker", "singularity") + // Name and version of runtime engine ("docker 20.10.16", "singularity-ce version 3.9.9") Runtime() string + + GatewayTarget }