Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update agent.go

Daniel Hougaard9fcdf17a04a1
diff --git a/cli/packages/cmd/agent.go b/cli/packages/cmd/agent.go
index 52bf932f1a..14acfa6abe 100644
--- a/cli/packages/cmd/agent.go
+++ b/cli/packages/cmd/agent.go
@@ -521,9 +521,12 @@ func (tm *TokenManager) MonitorSecretChanges(secretTemplate Template, sigChan ch
}
}
}
+ time.Sleep(pollingInterval)
+ } else {
+ // It fails to get the access token. So we will re-try in 3 seconds. We do this because if we don't, the user will have to wait for the next polling interval to get the first secret render.
+ time.Sleep(3 * time.Second)
}
- time.Sleep(pollingInterval)
}
}