[PR #117] [MERGED] Add WorkflowServer API to stop workflow handler and cancel tasks #135

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

📋 Pull Request Information

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

Base: mainHead: cursor/LI-3715-stop-workflow-handler-and-cancel-tasks-0c0b


📝 Commits (8)

  • 083ef9f Add delete handler endpoint and functionality
  • 7707bb3 Add DELETE /handlers/{handler_id} endpoint
  • 1f21aaa Add server dependencies and refactor handler deletion logic
  • 81afdc5 cleanup
  • 6e10dee Add deletion query
  • 5ba5229 Add cancelled status
  • 977d78d switch to cancel api
  • 4f8d22e Support different pyright python versions based on dir

📊 Changes

9 files changed (+397 additions, -58 deletions)

View changed files

📝 pyproject.toml (+12 -0)
📝 src/workflows/server/abstract_workflow_store.py (+7 -1)
📝 src/workflows/server/server.py (+124 -16)
📝 src/workflows/server/sqlite_workflow_store.py (+61 -28)
📝 tests/server/memory_workflow_store.py (+10 -0)
📝 tests/server/test_openapi_schema.py (+2 -0)
📝 tests/server/test_server_endpoints.py (+107 -3)
📝 tests/server/test_server_persistence.py (+22 -10)
📝 tests/server/test_sqlite_workflow_store.py (+52 -0)

📄 Description

Adds an API to cancel and delete running or completed workflows. Includes a query param as to whether it should just cancel, or fully delete


🔄 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/117 **Author:** [@adrianlyjak](https://github.com/adrianlyjak) **Created:** 9/29/2025 **Status:** ✅ Merged **Merged:** 9/30/2025 **Merged by:** [@adrianlyjak](https://github.com/adrianlyjak) **Base:** `main` ← **Head:** `cursor/LI-3715-stop-workflow-handler-and-cancel-tasks-0c0b` --- ### 📝 Commits (8) - [`083ef9f`](https://github.com/run-llama/workflows-py/commit/083ef9fc59c3c1091b5279af0a68dab746b8ddcc) Add delete handler endpoint and functionality - [`7707bb3`](https://github.com/run-llama/workflows-py/commit/7707bb355dbb1d53935220bcb84d0fa2cd161e3f) Add DELETE /handlers/{handler_id} endpoint - [`1f21aaa`](https://github.com/run-llama/workflows-py/commit/1f21aaa904ed1791c228d86e7f0bab24dbe6dd29) Add server dependencies and refactor handler deletion logic - [`81afdc5`](https://github.com/run-llama/workflows-py/commit/81afdc5874c9a9dbb66c955ab7c0c6f9d2233b97) cleanup - [`6e10dee`](https://github.com/run-llama/workflows-py/commit/6e10dee49b8c50f7fa91b6cae27e46c1b87facf2) Add deletion query - [`5ba5229`](https://github.com/run-llama/workflows-py/commit/5ba522935721e07775c8ab8cdc296192eed339c9) Add cancelled status - [`977d78d`](https://github.com/run-llama/workflows-py/commit/977d78db982df40c3338a691b6b063db43b31121) switch to cancel api - [`4f8d22e`](https://github.com/run-llama/workflows-py/commit/4f8d22e709c707fc9530463885348d4a480b6378) Support different pyright python versions based on dir ### 📊 Changes **9 files changed** (+397 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `pyproject.toml` (+12 -0) 📝 `src/workflows/server/abstract_workflow_store.py` (+7 -1) 📝 `src/workflows/server/server.py` (+124 -16) 📝 `src/workflows/server/sqlite_workflow_store.py` (+61 -28) 📝 `tests/server/memory_workflow_store.py` (+10 -0) 📝 `tests/server/test_openapi_schema.py` (+2 -0) 📝 `tests/server/test_server_endpoints.py` (+107 -3) 📝 `tests/server/test_server_persistence.py` (+22 -10) 📝 `tests/server/test_sqlite_workflow_store.py` (+52 -0) </details> ### 📄 Description Adds an API to cancel and delete running or completed workflows. Includes a query param as to whether it should just cancel, or fully delete --- <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:41 -05:00
yindo closed this issue 2026-02-16 02:16:41 -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#135