Skip to content

Commit

Permalink
testing sleeping to ensure dns is settled
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorOgg committed Feb 13, 2024
1 parent 29a501f commit 8a46ed2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"tailscale-route-tiller/slack"
"tailscale-route-tiller/tailscale"
"tailscale-route-tiller/utils"
"time"

"tailscale-route-tiller/cloudwatchevent"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a46ed2

Please sign in to comment.