Skip to content

Cron Jobs ​

A Cron Job runs your code on a schedule — a nightly report, a cleanup task, a scheduled sync — and exits when it's done. Unlike a Web Service, nothing runs between scheduled executions, so you're never paying for idle time.

Create a cron job ​

New Service → Cron Job, then fill in:

FieldMeaning
Repository / Branch / Root directorySame as a Web Service.
Install / Build / Start commandThe start command is what actually runs on each scheduled execution — it should do its work and exit, not start a long-running server.
ScheduleStandard cron syntax (e.g. 0 3 * * * for daily at 03:00), evaluated in the timezone you choose.
PlanSets the CPU/memory each execution gets — see below for how this affects cost.

A cron job requires a validated payment method on the account before it can be created, since — unlike a web service's free plan — a cron job can genuinely cost money the moment it first runs.

How a run behaves ​

  • No overlapping runs. If a scheduled tick fires while the previous run is still going, Infrly skips it rather than starting a second overlapping execution.
  • No silent retries. If a run fails, it's reported as failed immediately — Infrly doesn't retry it quietly in the background and hide that anything went wrong.
  • A hard time limit. Each run is capped at 6 hours; a job still going at that point is terminated and marked failed. If your job legitimately needs longer than that, split it into smaller scheduled pieces.

Every execution's outcome and duration is recorded and visible in the service's execution history.

How billing works ​

Cron plans are priced differently from every other service kind: the flat monthly plan price is always $0. You're billed per-execution instead, based on your plan's CPU/memory and exactly how long each run took — a job that runs for 45 seconds costs a small fraction of a cent; a job that never runs costs exactly $0. There's no minimum monthly charge the way some other platforms have. See Resource Plans & Usage-Based Billing for the exact per-second rates.

Next ​

Infrly — You commit. We ship. Need something custom? support@infrlyapp.com