From 8a46ed2c3fae6186b6b1d15f9e54729cef11a2ab Mon Sep 17 00:00:00 2001 From: "Dr. Ogg" Date: Tue, 13 Feb 2024 07:08:24 -0800 Subject: [PATCH] testing sleeping to ensure dns is settled --- worker/worker.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/worker/worker.go b/worker/worker.go index 85b2dc2..fb93c3e 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -10,6 +10,7 @@ import ( "tailscale-route-tiller/slack" "tailscale-route-tiller/tailscale" "tailscale-route-tiller/utils" + "time" "tailscale-route-tiller/cloudwatchevent" @@ -73,6 +74,12 @@ func Run(testMode bool, config config.Config) { continue // Skip this message or handle the error as appropriate } + // before running the udpate, we should wait for dns to settle + + // lets wait for 2 minutes for DNS to settle + log.Println("Waiting for DNS to settle...") + time.Sleep(2 * time.Minute) + runUpdates(testMode, config, event) // Delete the message from the queue after processing