• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

run-llama / workflows-py / 17627093182

10 Sep 2025 09:18PM UTC coverage: 95.267% (-0.1%) from 95.408%
17627093182

push

github

web-flow
feat: Add POST /events/{handler_id} endpoint and /handlers endpoint (#89)

* feat: Add POST /events/{handler_id} endpoint and /tasks endpoint

- Add GET /tasks endpoint to list running workflow tasks
- Add POST /events/{handler_id} endpoint to send events to running workflows
- Enable external event injection into workflow contexts
- Add InteractiveWorkflow test fixture for testing event handling
- Add comprehensive tests for both endpoints

This allows developers to:
1. Monitor running workflows via the /tasks endpoint
2. Send events to running workflows for interactive use cases
3. Build event-driven integrations with external systems

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix lint

* refactor: Update /tasks endpoint to /handlers with enhanced status tracking

- Renamed /tasks endpoint to /handlers for better naming consistency
- Enhanced handler status tracking (running, completed, failed)
- Added result and error fields to handler response
- Fixed safe access to handler.result() and handler.exception() methods
- Added comprehensive tests for all handler states

The /handlers endpoint now provides complete visibility into workflow execution state.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* update comments

---------

Co-authored-by: Claude <noreply@anthropic.com>

42 of 47 new or added lines in 1 file covered. (89.36%)

1248 of 1310 relevant lines covered (95.27%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.57
/src/workflows/server/server.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc