Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add region id & name to rivet meta #1511

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/services/ds/src/workflows/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ struct GetBuildAndDcOutput {
build_kind: BuildKind,
build_compression: BuildCompression,
dc_name_id: String,
dc_display_name: String,
dc_build_delivery_method: BuildDeliveryMethod,
}

Expand Down Expand Up @@ -569,6 +570,7 @@ async fn get_build_and_dc(
build_kind: build.kind,
build_compression: build.compression,
dc_name_id: dc.name_id.clone(),
dc_display_name: dc.display_name.clone(),
dc_build_delivery_method: dc.build_delivery_method,
})
}
Expand Down
3 changes: 2 additions & 1 deletion packages/services/ds/src/workflows/server/pegboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ async fn setup(
"id": input.cluster_id
},
"region": {
"name": build_dc.dc_name_id,
"id": build_dc.dc_name_id,
"name": build_dc.dc_display_name,
},
"build": {
"id": input.image_id,
Expand Down
3 changes: 3 additions & 0 deletions sdks/actors-bridge/src/bridge/90_rivet_ns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface Metadata {
id: string;
};
region: {
id: string;
name: string;
};
build: {
Expand Down Expand Up @@ -44,6 +45,7 @@ function parseMetadata(): Metadata {
id: parsedMetadata.cluster.id,
},
region: {
id: parsedMetadata.region.id,
name: parsedMetadata.region.name,
},
build: {
Expand All @@ -70,6 +72,7 @@ function parseMetadata(): Metadata {
id: null as any,
},
region: {
id: null as any,
name: null as any,
},
build: {
Expand Down