mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #386] [MERGED] Add per-agent timeouts and partial committee handling in today workflow service #688
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#688
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/386
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/7/2026
Merged by: @AJaySi
Base:
main← Head:codex/wrap-propose_daily_tasks-in-asyncio.wait_for📝 Commits (1)
198143eAdd per-agent timeout handling for daily committee proposals📊 Changes
1 file changed (+90 additions, -26 deletions)
View changed files
📝
backend/services/today_workflow_service.py(+90 -26)📄 Description
Motivation
Description
_get_agent_proposal_timeout_seconds(grounding)to read a configurableworkflow_config.agent_proposal_timeout_seconds(default 4s, min 1s).asyncio.gatherover agent calls with a per-agent_collect_agent_proposalsrunner that wraps eachagent.propose_daily_tasks(grounding)inasyncio.wait_for(...)and returns a structured result (agent_key,status,elapsed_ms,proposals,error).agent,status,elapsed_ms,timeout_s,proposal_count) and emitted warnings on timeouts/errors._ensure_pillar_coveragewhen the committee partially succeeds; only trigger the LLM fallback when the entire committee phase fails or no agents responded successfully.Testing
python -m py_compile backend/services/today_workflow_service.pyand it completed successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.