Schedule & Webhook

1figure
1min read
Sheet 35 of 47 · Automation

Tests > Schedule runs the scenario folder by itself while the tool is open, daily at a time or every N minutes, and posts the result to a webhook. A Discord URL gets an embed, anything else a plain JSON body.

The Schedule page: when to run, where to post, and what to do before the run.
The Schedule page set to Off, with Off, At night and On a timer choices, a Discord webhook URL, Save, Run now and Send test buttons, and the runs per file, deploy and posting options

Set it up

  1. Pick when

    At night runs daily at a time. On a timer runs every N minutes.

  2. Paste the webhook

    A Discord webhook URL, or any other URL that takes a JSON body.

  3. Pick the extras

    Each file runs up to 50 times per round; more than one run shows flaky steps. Tick build and deploy to run after a fresh deploy.

  4. Save

    Run now starts a round right away.

When it runs

  • Daily runs once the time has passed since the tool started and since the last run. A time missed while the tool was closed does not run on start, and a run by hand after the time counts for the day.
  • Interval counts from the tool start or the last run.
  • Run now and the schedule never start while another scenario run holds the bots.
  • A run that cannot start (no scenario folder, the deploy failed to build) is posted once per reason, not on every tick.

What gets posted

Discord embeds are cut to fit its limits: every line at 150 characters and the whole description under 3900.

With "Also post every deploy" on (webhookOnDeploy), each deploy and watch deploy posts its result to the webhook too. See Hot Deploy.

Over HTTP

EndpointParameters
/schedule/runwait=1
/schedule/status
curl -H "X-ITT-Token: $TOKEN" "localhost:8767/schedule/run?wait=1"
curl "localhost:8767/schedule/status"

/schedule/run needs the API token. See HTTP API.

Loading the index

Enter openUp Down moveEsc close