start • AI Agents Framework

start: Start scheduled agent execution.

start

Method

</div>

This is a method of the AgentScheduler class in the agent_scheduler module.

Start scheduled agent execution.

Signature

python
def start(schedule_expr: str, max_retries: int, run_immediately: bool) -> bool

Parameters

ParamField str

Schedule expression (e.g., “hourly”, “*/1h”, “3600”)

ParamField int

Maximum retry attempts on failure

ParamField bool

If True, run agent immediately before starting schedule

Returns

ResponseField bool

True if scheduler started successfully

Uses

  • logger.warning
  • ScheduleParser.parse
  • logger.info
  • threading.Thread
  • start
  • logger.error

Used By

Source

View on GitHub

praisonai/agent_scheduler.py at line 169