Ignitify.dev
Run later
Guides

Run later

Start one run at a set time with --at. List the pending runs and cancel one with schedule:list and schedule:cancel. To run a task again and again, see Run on a schedule.

1 · Schedule the run

Give --at a future time in ISO-8601, in UTC when it ends with Z.

terminal
$ ignitify task:run hello --at 2027-01-15T03:00:00ZScheduled: sch_Wk4RtZ9pXe1B fires at 2027-01-15T03:00:00.000ZNo run exists until it fires. List with 'ignitify schedule:list'; cancel with 'ignitify schedule:cancel sch_Wk4RtZ9pXe1B'.

2 · List the pending runs

schedule:list shows each pending one-time run, soonest first, then your recurring schedules.

terminal
$ ignitify schedule:listschedule_id       kind  task   status   next_fire_at              cron  timezone────────────────  ────  ─────  ───────  ────────────────────────  ────  ────────sch_Wk4RtZ9pXe1B  once  hello  PENDING  2027-01-15T03:00:00.000Z  -     -

3 · Cancel one

schedule:cancel asks first; -y skips the question, and a script needs it.

terminal
$ ignitify schedule:cancel sch_Wk4RtZ9pXe1B -yWill cancel schedule sch_Wk4RtZ9pXe1B — it will never fire.Schedule cancelled: sch_Wk4RtZ9pXe1B

4 · Do not combine it with --wait

A scheduled run has no run id until it fires, so the CLI refuses --at with --wait.

terminal
$ ignitify task:run hello --at 2027-01-15T03:00:00Z --waitError: --wait cannot be used with --at: a scheduled run has no run id until it fires. Drop --wait; follow it later with 'ignitify schedule:list' and 'ignitify run:list'.

5 · Find the run after it fires

When the time comes, the schedule leaves the list and the run shows up in run:list.

terminal
$ ignitify run:list --task-name hello

6 · Read the run in your task

ctx.run.id is the run_… id of the run. Use it as the key when your task writes to another system. A run you start with --at has no slot: ctx.run.schedule_id and ctx.run.scheduled_for are both empty, although schedule:list shows a sch_… id for it.