[PR #118] [MERGED] Add consumer lock to events api #136

Closed
opened 2026-02-16 02:16:42 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/workflows-py/pull/118
Author: @adrianlyjak
Created: 9/30/2025
Status: Merged
Merged: 10/1/2025
Merged by: @adrianlyjak

Base: mainHead: cursor/add-consumer-lock-to-events-api-ba01


📝 Commits (1)

  • 5a4f4de feat: Add single-consumer lock for event streams

📊 Changes

3 files changed (+133 additions, -33 deletions)

View changed files

📝 src/workflows/server/server.py (+79 -25)
📝 tests/server/test_handler_serialization.py (+1 -0)
📝 tests/server/test_server_endpoints.py (+53 -8)

📄 Description

Add a consumer lock to the /events API handler to ensure reliable event consumption for a single connection, multiple connections are rejected until the first hangs up.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/workflows-py/pull/118 **Author:** [@adrianlyjak](https://github.com/adrianlyjak) **Created:** 9/30/2025 **Status:** ✅ Merged **Merged:** 10/1/2025 **Merged by:** [@adrianlyjak](https://github.com/adrianlyjak) **Base:** `main` ← **Head:** `cursor/add-consumer-lock-to-events-api-ba01` --- ### 📝 Commits (1) - [`5a4f4de`](https://github.com/run-llama/workflows-py/commit/5a4f4deae8072f760548314956c77f52eb17e700) feat: Add single-consumer lock for event streams ### 📊 Changes **3 files changed** (+133 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `src/workflows/server/server.py` (+79 -25) 📝 `tests/server/test_handler_serialization.py` (+1 -0) 📝 `tests/server/test_server_endpoints.py` (+53 -8) </details> ### 📄 Description Add a consumer lock to the `/events` API handler to ensure reliable event consumption for a single connection, multiple connections are rejected until the first hangs up. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 02:16:42 -05:00
yindo closed this issue 2026-02-16 02:16:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/workflows-py#136