Request a demo
Docs / Apps & scheduling / Dry-run before enabling

Dry-running a schedule

Before you leave a schedule running unattended, fire it once by hand. Adding --dry-run stops outgoing email from being sent so you can check the result first.

insightworker schedule run --dry-run morning-digest

What dry-run changes

  • send_email does not call Microsoft Graph. It writes the message to an HTML preview file in your temp directory and opens it in the default browser. The preview shows the recipients and the subject. No email is sent.
  • The agent is told the send succeeded, so any later steps (archiving, logging) still run.

What dry-run does not change

Dry-run covers email only. Every other tool runs for real:

  • write_file and edit_file write to disk.
  • bash commands execute.
  • airflow_trigger_dag, jira_create_issue, git_commit, git_push and database queries are carried out.
  • Model calls are made and billed by your provider as usual.

If a schedule changes other systems, test it against a non-production target first, or temporarily word the prompt so it reports what it would do instead of doing it.

A safe way to iterate

insightworker schedule list                          # confirm the schedule loaded
insightworker schedule run --dry-run morning-digest  # run now, preview the email
insightworker schedule run morning-digest            # run now for real, once
insightworker --daemon                               # leave it running

Each run appends to <workspace>/.insightworker/logs/<name>.log, including the name of every tool the agent called. Read that log after the dry run to see what the schedule actually did.

Checking the timing

There is no command that prints upcoming fire times. An invalid cron: expression is reported when the file loads (insightworker schedule list), and the running daemon prints each schedule's next fire time in its once-a-minute status line.

See also