Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
AgentScheduler
Defined in the Agent Scheduler module.AI Agents Framework Scheduler for running PraisonAI agents periodically. Features:
- Interval-based scheduling (hourly, daily, custom)
- Thread-safe operation
- Automatic retry on failure
- Execution logging and monitoring
- Graceful shutdown
Constructor
The PraisonAI agent or
AsyncPraisonAgentExecutor instance to run.The prompt / task string passed to the agent on each run.
Optional extra config (reserved; currently unused).
Invoked with the agent’s result after a successful run. Sync or async; exceptions are logged, not raised.
Invoked with the last captured exception after
max_retries attempts fail. Sync or async; exceptions are logged, not raised.Methods
start()
Start scheduled agent execution.
stop()
Stop the scheduler gracefully.
get_stats()
Get execution statistics.
execute_once()
Execute agent immediately (one-time execution).
Usage
Source
View on GitHub
praisonai/agent_scheduler.py at line 119
