Kind: Class
Source: atloria-monorepo/libs/agent-core/src/tools/cron.tool.ts
Methods
| Method | Signature | Returns |
|---|---|---|
parseInterval | parseInterval(schedule: string) | `number |
create | create(schedule: string, message: string) | `CronJob |
delete | delete(id: string) | boolean |
list | list() | Array<{ id: string; schedule: string; message: string; next_fire_at: number }> |
dispose | dispose() | void |
Where it refuses work
CronSchedulerstops the work with an early return when!job, in 2 places.CronSchedulerstops the work with an early return when!schedule.CronSchedulerstops the work with an early return when!match.CronSchedulerstops the work with an early return whenintervalMs === null.
Was this page helpful?