Skip to content

Commit

Permalink
chore: add region id & name to rivet meta
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Dec 2, 2024
1 parent d71c685 commit 6557b24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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

0 comments on commit 6557b24

Please sign in to comment.