17244: Fix singularity reporting host stats as container stats.
[arvados.git] / lib / crunchrun / singularity.go
index daa0bfe94dd9442d0198d01caa5abbffdf1d3b61..fd26297713c4a77b084d58e72512f6c22b1e670e 100644 (file)
@@ -354,11 +354,8 @@ func (e *singularityExecutor) Start() error {
 }
 
 func (e *singularityExecutor) Pid() int {
-       pid, err := e.containedProcess()
-       if err != nil {
-               return -1
-       }
-       return pid
+       // see https://dev.arvados.org/issues/17244#note-21
+       return 0
 }
 
 func (e *singularityExecutor) Stop() error {