Skip to content

Commit d716514

Browse files
authored
fix: Attach lease to etcd key (NVIDIA#364)
That ensures it gets removed when the process stops.
1 parent c52c11f commit d716514

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

launch/dynamo-run/src/input/endpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub async fn run(
101101
.kv_create(
102102
network_name.clone(),
103103
serde_json::to_vec_pretty(&model_registration)?,
104-
None,
104+
Some(etcd_client.lease_id()),
105105
)
106106
.await?;
107107

0 commit comments

Comments
 (0)