The AgentExecutorCronJob Object

The AgentExecutorCronJob Object

The AgentExecutorCronJob object represents a scheduled job in Agent Orbit that executes an agent at regular intervals based on a cron expression. It contains the following attributes:

Attributes

pythonCopy codeclass AgentExecutorCronJob:
    id: str  # Unique identifier for the cron job
    agent_id: str  # ID of the agent associated with the cron job
    name: str  # Name of the cron job
    status: Literal["suspended", "running"]  # Current status of the cron job
    expression: str  # Cron expression defining the schedule
    execution_stream_address: str  # Address of the execution stream
    created: str  # Timestamp when the cron job was created
    modified: str  # Timestamp when the cron job was last modified

Cron Expression

The expression field uses a cron expression to define the job's schedule. You can generate or validate cron expressions using tools like crontab.guruarrow-up-right.


Example Usage

Here’s how you can work with the AgentExecutorCronJob object:

Retrieve a Cron Job

Last updated