Skip to content

Skip storing sandbox routing to Redis if sandbox is in remote cluster - #1765

Merged
sitole merged 3 commits into
mainfrom
fix/stop-exposing-sandobx-routing-for-remote-clusters
Jan 23, 2026
Merged

sitole merged 3 commits into
mainfrom
fix/stop-exposing-sandobx-routing-for-remote-clusters

Conversation

@sitole

@sitole sitole commented Jan 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #1763 (comment)


Note

Focus routing-table updates to Nomad-managed nodes only.

  • In lifecycle.go, addSandboxToRoutingTable now returns early if node is nil and skips Redis StoreSandbox unless node.IsNomadManaged(); remote clusters rely on gRPC metadata instead
  • In delete_instance.go, removeSandboxFromNode now deletes from routing catalog only when node.IsNomadManaged()

Written by Cursor Bugbot for commit 2ab0808. This will update automatically on new commits. Configure here.

Comment thread packages/api/internal/orchestrator/lifecycle.go
@sitole sitole changed the title Skipp storing sandbox routing to Redis if sandbox is in remote cluster Skip storing sandbox routing to Redis if sandbox is in remote cluster Jan 23, 2026
@sitole
sitole marked this pull request as ready for review January 23, 2026 12:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e756098ec

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/api/internal/orchestrator/lifecycle.go
Comment thread packages/api/internal/orchestrator/delete_instance.go Outdated
Co-authored-by: Jakub Novák <jakub@e2b.dev>
@sitole
sitole enabled auto-merge (squash) January 23, 2026 14:34
@sitole
sitole merged commit bf33084 into main Jan 23, 2026
29 checks passed
@sitole
sitole deleted the fix/stop-exposing-sandobx-routing-for-remote-clusters branch January 23, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cluster node sandbox routing fails - OrchestratorIP overwritten with empty string

2 participants