Skip to content

Conversation

@apazzolini
Copy link
Contributor

Prior to this PR, if a client is using the --watch flag and loses connectivity to the Doppler API (either because they lost internet or the service they were connected to went down), the process started by doppler run would continue running but never be restarted.

This PR will now detect connectivity failures and handle reconnection. When reconnecting, the process will only be restarted if secrets have indeed changed; if no secrets were changed, the pre-existing process will continue running.

Closes ENG-8855

The code behind --watch (which is the only thing that triggers the
performSSERequest function) does its own retrying.
@apazzolini apazzolini requested a review from a team as a code owner June 17, 2025 19:58
@nmanoogian nmanoogian self-requested a review June 17, 2025 20:05
@emily-curry emily-curry requested review from emily-curry and removed request for nmanoogian July 7, 2025 18:13
emily-curry
emily-curry previously approved these changes Jul 10, 2025
Copy link
Member

@emily-curry emily-curry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff! I tested locally, tried to break it, but this feels pretty solid. I'm going to keep using this version locally for a while to see if I get any unexpected restarts, but this is good to merge now.

We no longer use the utils.Retry wrapper as we're unable to coordinate
resetting of the sleep time when using it.
@apazzolini
Copy link
Contributor Author

@emily-curry Applied the generic change, note that the CLI repo requires re-review when anything changes.

@apazzolini apazzolini merged commit 2537224 into master Jul 14, 2025
29 of 31 checks passed
@apazzolini apazzolini deleted the andre/watch-reconnect branch July 14, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants