Skip to main content

start

Method
This is a method of the AgentScheduler class in the agent_scheduler module.
Start scheduled agent execution.

Signature

Parameters

str
required
Schedule expression (e.g., “hourly”, ”*/1h”, “3600”)
int
default:"3"
Maximum retry attempts on failure
bool
default:"False"
If True, run agent immediately before starting schedule

Returns

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