Skip to content

Commit

Permalink
Merge pull request #45 from nfelsen/feature/run-once-on-start
Browse files Browse the repository at this point in the history
Fixing race condition preventing ansible to run on start
  • Loading branch information
nfelsen committed Jan 22, 2024
2 parents d58859c + dd90afd commit 9359b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func main() {
}

go func() {
runOnce()
runChan <- true // block until the first run is triggered
if jitter == 0 {
for range time.Tick(period) {
runOnce()
Expand Down

0 comments on commit 9359b73

Please sign in to comment.