From 5c40a342d560f1d8b4fc5987edce94d5907b14dd Mon Sep 17 00:00:00 2001 From: samrabelachew Date: Wed, 19 Jul 2023 08:17:11 -0700 Subject: [PATCH] Temporarily remove ratelimit poller in temporal worker (#715) This is just temporary for a cleaner rollout. Originally merged this change to test in staging, but ideally, all instances of using the new `TemporalAppInstallationID` config should be rolled out together in https://github.com/lyft/atlantis/pull/711 --- server/neptune/temporalworker/server.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/neptune/temporalworker/server.go b/server/neptune/temporalworker/server.go index 26ebea4a3..baad70d65 100644 --- a/server/neptune/temporalworker/server.go +++ b/server/neptune/temporalworker/server.go @@ -225,10 +225,11 @@ func NewServer(config *config.Config) (*Server, error) { Executor: crons.NewRuntimeStats(scope).Run, Frequency: 1 * time.Minute, }, - { - Executor: crons.NewRateLimitStats(scope, clientCreator, config.GithubCfg.TemporalAppInstallationID).Run, - Frequency: 1 * time.Minute, - }, + // TODO: use when we rollout new app for temporalworker all together + //{ + // Executor: crons.NewRateLimitStats(scope, clientCreator, config.GithubCfg.TemporalAppInstallationID).Run, + // Frequency: 1 * time.Minute, + //}, }, HTTPServerProxy: httpServerProxy, Port: config.ServerCfg.Port,