From a29869208165d52adb6df6080c3ee356bdfd3ae5 Mon Sep 17 00:00:00 2001 From: Ali Mosallaei Date: Sun, 1 Sep 2024 08:47:09 -0400 Subject: [PATCH] Disable RTM flag push --- samples/runner/flag.go | 1 + samples/runner/runner.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/runner/flag.go b/samples/runner/flag.go index 8a3287a4..53763080 100644 --- a/samples/runner/flag.go +++ b/samples/runner/flag.go @@ -45,6 +45,7 @@ var customPortForAkitaRTM = flag.Int("akitartm-port", 0, `Custom port to host AkitaRTM. A 4-digit or 5-digit port number is required. If this number is not given or a invalid number is given number, a random port will be used.`) +var disableAkitaRTM = flag.Bool("disable-rtm", false, "Disable the AkitaRTM monitoring portal") var analyszerNameFlag = flag.String("analyzer-name", "", "The name of the analyzer to use.") diff --git a/samples/runner/runner.go b/samples/runner/runner.go index 71f15c72..77839b01 100644 --- a/samples/runner/runner.go +++ b/samples/runner/runner.go @@ -143,7 +143,9 @@ func (r *Runner) buildTimingPlatform() { r.platform = b.Build() - r.monitor.StartServer() + if !*disableAkitaRTM { + r.monitor.StartServer() + } } func (*Runner) setAnalyszer(