Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

feat(bindings): Expose etcd functionality in python distributed runtime #322

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ishandhanani
Copy link
Contributor

@ishandhanani ishandhanani commented Mar 2, 2025

Overview

This PR exposes the EtcdClient functionality to Python bindings and updates the core.pyi file to reflect these changes. It enhances the capabilities of the DistributedRuntime by providing access to Etcd operations.

Detailed breakdown and reasoning

The addition of EtcdClient functionality allows Python users to interact with Etcd allowing us to leverage it for runtime discovery. Exposing this functionality will be helpful when it comes time to deploy NIXL on multiple nodes. As of now I have only exposed the kv_create_or_validate, kv_put, and kv_get_prefix functionality.

In future PRs, we can expose the watch functionality but it's not needed right now

Changes Made

  • Added EtcdClient class to Rust bindings
  • Exposed EtcdClient through DistributedRuntime in Rust
  • Implemented kv_create_or_validate method for EtcdClient
  • Updated core.pyi to include EtcdClient and its methods
  • Added etcd_client() method to DistributedRuntime in Python bindings

Copy link

github-actions bot commented Mar 2, 2025

Test Results

61 tests   58 ✅  7s ⏱️
 1 suites   1 💤
 1 files     2 ❌

For more details on these failures, see this check.

Results for commit 87644d2.

♻️ This comment has been updated with latest results.

@ishandhanani ishandhanani marked this pull request as ready for review March 2, 2025 21:56
@ishandhanani ishandhanani changed the title [DRAFT] feat(bindings): Expose etcd-client in python distributed runtime feat(bindings): Expose etcd functionality in python distributed runtime Mar 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant