Skip to content

Commit

Permalink
Support TEMPORAL_NAMESPACE in the runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
robholland committed Dec 13, 2023
1 parent a597413 commit 55186b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/runner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@ func main() {
log.Printf("WARNING: failed to set GOMAXPROCS: %v.\n", err)
}

namespace := *sNamespace
envNamespace := os.Getenv("TEMPORAL_NAMESPACE")
if envNamespace != "" && envNamespace != "default" {
namespace = envNamespace
}

clientOptions := client.Options{
HostPort: os.Getenv("TEMPORAL_GRPC_ENDPOINT"),
Namespace: *sNamespace,
Namespace: namespace,
Logger: NewNopLogger(),
}

Expand Down

0 comments on commit 55186b7

Please sign in to comment.