# cron (adapter system)

a.cron domain adapter — interval parsing + schedule tools. A workspace package (not just a scanned adapter dir) because @leumas/triggers reuses parseEvery; the adapter registry still disk-scans it...


Schedulable **action adapters**. Ported from `leumas-middleware/lib/a.cron` — the portable actions a
schedule fires plus the interval parser. The source's express server, `public/` Electron-style UI, and
Windows Task Scheduler (`winScheduler`) integration were stripped; the actual scheduler lives in
`@leumas/triggers`. HTTP actions were rebased from node `http`/`https` onto native `fetch`.

## Tools (`adapters`)

| tool | args | result |
|------|------|--------|
| `printMessage` | `{ message? }` | `{ ts, message }` |
| `pingUrl` | `{ url, timeoutMs? }` | `{ url, statusCode, durationMs }` |
| `callEndpoint` | `{ url, method?, headers?, body?, timeoutMs? }` | `{ statusCode, headers, data }` |
| `parseEvery` | `{ every }` — e.g. `"30s"`, `"5m"`, `"2h"` | `{ every, ms }` |


---
Source: shared/engines/adapters/domain/cron/README.md
Canonical: https://docs.leumas.tech/p/adapters/a-cron
