docs: Update AsyncAgentScheduler docs with new timeout and max_cost parameters#481
Conversation
…arameters (fixes #479) - Added new Quick Start step showing timeout & budget usage - Updated constructor parameter tables with timeout and max_cost descriptions - Added stats response format fields for total_cost_usd and remaining_budget - Created budget-aware scheduling pattern with Mermaid flow diagram - Added budget and timeout best practice accordions - Updated factory function to accept new parameters - Added thread-safety note for jobs server singleton init - Updated CLI scheduler docs with reference to new features 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Mervin Praison <MervinPraison@users.noreply.github.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Warning Review limit reached
More reviews will be available in 51 minutes and 36 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces budget and timeout configurations to the AsyncAgentScheduler class, updating the factory function create_async_agent_scheduler to accept these new parameters (on_success, on_failure, timeout, and max_cost). It also updates the documentation across several files to reflect these new features, including code examples, parameter tables, and a Mermaid diagram. Additionally, a note about thread-safe singleton initialization in the jobs server was added to the thread-safety documentation. Feedback on the code changes suggests removing trailing whitespaces and adding a trailing newline at the end of praisonai/scheduler/async_agent_scheduler.py to comply with PEP 8 standards.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| return AsyncAgentScheduler( | ||
| agent, | ||
| task, | ||
| config, | ||
| on_success=on_success, | ||
| on_failure=on_failure, | ||
| timeout=timeout, | ||
| max_cost=max_cost | ||
| ) No newline at end of file |
There was a problem hiding this comment.
According to the PEP 8 style guide, trailing whitespace should be avoided (W291), and files should always end with a single newline (W292). There are trailing spaces on lines 652, 653, and 654, and the file is missing a newline at the end.
| return AsyncAgentScheduler( | |
| agent, | |
| task, | |
| config, | |
| on_success=on_success, | |
| on_failure=on_failure, | |
| timeout=timeout, | |
| max_cost=max_cost | |
| ) | |
| return AsyncAgentScheduler( | |
| agent, | |
| task, | |
| config, | |
| on_success=on_success, | |
| on_failure=on_failure, | |
| timeout=timeout, | |
| max_cost=max_cost | |
| ) | |
References
- PEP 8: Avoid trailing whitespace (W291) and ensure files end with a single newline (W292). (link)
Fixes #479
Summary
Updated AsyncAgentScheduler documentation to reflect new timeout and max_cost parameters from PR #1771.
Changes
Files Updated
All changes follow AGENTS.md standards with agent-centric examples, proper Mermaid diagrams using the standard color scheme, and comprehensive coverage of the new budget enforcement and timeout features.
🤖 Generated with Claude Code