Closed f1ames closed 6 months ago
Found the cause when working on https://github.com/kubeshop/monokle-saas/issues/2307 and fixed in #92.
There was a bug (looked like kind of leftover / not fully cleaned-up code), where synchronization would fire synchronize
event. The synchronize
event listener would again restart synchronization procedure... creating a loop 😓
Policy syncing interval is set to 30 seconds:
https://github.com/kubeshop/vscode-monokle/blob/8964cc2fe5726576d8e3d73aff3c6682bf7d1e74/src/utils/policy-puller.ts#L10
https://github.com/kubeshop/vscode-monokle/blob/8964cc2fe5726576d8e3d73aff3c6682bf7d1e74/src/utils/policy-puller.ts#L44-L68
However, @WitoDelnat observed on his machine (macOS, M1 AFAIR) that it basically syncs all the time (like every 5 seconds). This needs to be checked whats going on.