[ARVADOS] created: 2.1.0-452-g3193023d7
Git user
git at public.arvados.org
Thu Feb 18 16:45:00 UTC 2021
at 3193023d7335f793d5cc015aa185f7a450e650f7 (commit)
commit 3193023d7335f793d5cc015aa185f7a450e650f7
Author: Tom Clegg <tom at curii.com>
Date: Thu Feb 18 11:43:27 2021 -0500
17398: Skip gateway server if dispatcher does not send desired addr.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
diff --git a/lib/crunchrun/crunchrun.go b/lib/crunchrun/crunchrun.go
index 7d6fb4ed4..969682f46 100644
--- a/lib/crunchrun/crunchrun.go
+++ b/lib/crunchrun/crunchrun.go
@@ -1887,10 +1887,12 @@ func (command) RunCommand(prog string, args []string, stdin io.Reader, stdout, s
Log: cr.CrunchLog,
}
os.Unsetenv("GatewayAuthSecret")
- err = cr.gateway.Start()
- if err != nil {
- log.Printf("error starting gateway server: %s", err)
- return 1
+ if cr.gateway.Address != "" {
+ err = cr.gateway.Start()
+ if err != nil {
+ log.Printf("error starting gateway server: %s", err)
+ return 1
+ }
}
parentTemp, tmperr := cr.MkTempDir("", "crunch-run."+containerID+".")
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list