projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17244: Make -cgroup-parent-subsystem=X work in cgroups v2.
[arvados.git]
/
lib
/
crunchrun
/
executor.go
diff --git
a/lib/crunchrun/executor.go
b/lib/crunchrun/executor.go
index dc1bc20b7c3a110269d1f95441a6c7e75af48ace..29abab631f2c03bba9cd2deb7d49bd56571b4ab0 100644
(file)
--- a/
lib/crunchrun/executor.go
+++ b/
lib/crunchrun/executor.go
@@
-4,10
+4,10
@@
package crunchrun
import (
package crunchrun
import (
+ "context"
"io"
"git.arvados.org/arvados.git/sdk/go/arvados"
"io"
"git.arvados.org/arvados.git/sdk/go/arvados"
- "golang.org/x/net/context"
)
type bindmount struct {
)
type bindmount struct {
@@
-51,8
+51,10
@@
type containerExecutor interface {
// Start the container
Start() error
// 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
// Stop the container immediately
Stop() error
@@
-60,6
+62,8
@@
type containerExecutor interface {
// Release resources (temp dirs, stopped containers)
Close()
// 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
Runtime() string
+
+ GatewayTarget
}
}