Skip to content

Commit b04ce07

Browse files
alicup29claude
andcommitted
Bump to v0.0.5: add UUID suffix to worker peer_id
Version bump to 0.0.5 for new release including account key auth, Ed25519 keypair P2P auth, dashboard job tracking, and account key management. Adds a 6-char random UUID suffix to worker peer_id to prevent collisions when multiple workers share the same account key on the same host. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eb6b068 commit b04ce07

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sleap-rtc"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
description = "Real-time communication layer for remote SLEAP training and inference"
55
readme = "README.md"
66
requires-python = ">=3.11"

sleap_rtc/worker/worker_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3342,7 +3342,7 @@ async def run_worker(
33423342
logging.info("P2P PSK authentication enabled (room secret configured)")
33433343

33443344
# Generate a worker peer ID based on API key prefix
3345-
peer_id = f"worker-{api_key[4:12]}-{socket.gethostname()[:8]}"
3345+
peer_id = f"worker-{api_key[4:12]}-{socket.gethostname()[:8]}-{uuid.uuid4().hex[:6]}"
33463346
self.peer_id_for_cleanup = peer_id
33473347
# Room ID and token will be returned by server after API key validation
33483348
room_json = {

0 commit comments

Comments
 (0)