Skip to content

Commit 90d5ac1

Browse files
authored
disable nested execution (#159)
1 parent 6ab43cf commit 90d5ac1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/golang/glog"
1919
)
2020

21-
const version = "v1.13.1"
21+
const version = "v1.13.2"
2222

2323
func init() {
2424
var versionPrint bool
@@ -44,6 +44,11 @@ Options:
4444
}
4545
fmt.Println("")
4646
}
47+
48+
if os.Getenv("SLURM_JOB_ID") != "" {
49+
glog.Exit("haddock-runner cannot be run inside a SLURM job")
50+
os.Exit(1)
51+
}
4752
}
4853

4954
func main() {

0 commit comments

Comments
 (0)