Skip to content

Commit 80a957e

Browse files
committed
fix(toolchain): attach tags to function workers
1 parent 681fbc8 commit 80a957e

File tree

1 file changed

+8
-1
lines changed
  • packages/toolchain/toolchain/src/tasks/deploy

1 file changed

+8
-1
lines changed

packages/toolchain/toolchain/src/tasks/deploy/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,19 @@ async fn create_edge_function_actors(
205205

206206
// Use build tags to match the appropriate build
207207
// This is more robust than using a specific build ID
208-
let build_tags = json!({
208+
let mut build_tags = json!({
209209
"name": fn_name,
210210
"current": "true",
211211
"type": "function"
212212
});
213213

214+
// Add extra tags to the function tags
215+
if let Some(tags) = &function.build.tags {
216+
for (k, v) in tags {
217+
build_tags[k] = json!(v);
218+
}
219+
}
220+
214221
// Create or upgrade actors for each region
215222
for region in &region_ids {
216223
if existing_regions.contains(region) {

0 commit comments

Comments
 (0)