Repository navigation
feat(host-cloudflare): refresh internal integration catalogs once per deployed version - #16
Merged
Merged
Conversation
… once per deployed version After reconcile, refresh the org main connection of each declared internal integration that already existed and whose stored endpoint equals the declared one. The last refreshed Worker version id is kept in the BLOBS bucket and only written after the refreshes ran. A missing binding or an R2 error refreshes anyway and never fails boot.
…nal integration failed A refresh that cannot reach its server succeeds but records a tool sync failure on the connection, so that now counts as failed. The version id is written only when every entry succeeded, so a binding that was down at boot is retried on the next boot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on the internal integrations reconcile. After reconcile, the org
mainconnection of each declared internal integration that already existed, and whose stored endpoint equals the declared one, is refreshed once per deployed Executor version.CF_VERSION_METADATAbinding (version_metadatain wrangler.jsonc). The last refreshed id is stored inBLOBSunderinternal-integrations/refreshed-version, written only after the refreshes ran.BLOBSor an R2 error: refresh anyway, log a warning, never fail boot.