Environment variables
Wherobots sets these environment variables for a scheduled script:
Read the supplied window rather than computing it from the clock. See Processing windows for how Wherobots sets the bounds.
You can’t set your own environment variables on a schedule, and the
WBC_ prefix is reserved. Pass configuration to the script in Arguments (args in the API).
Script inputs
Configure these settings in the schedule form. API requests supply them intask.inputs and triggerInputs, using the same settings as a Job Run:
To edit existing inputs without losing other settings, follow Change script inputs.
Script location and changes
- The script you select is stored as
definition.uriin the API. Its location must be ans3://URI with a bucket and object key. Whitespace, query strings and fragments aren’t supported. - Choose a location using Store the script. The task run must be able to read it using the schedule’s Run as identity (
runAsin the API). - The schedule doesn’t copy or pin the script. Each task run reads the selected file when it starts, so overwriting the file changes every later run. To keep a version fixed, upload it under a new name and select that file in the schedule, or update
definition.urithrough the API. - Choose the region when you create the schedule. To run the script in another region, create another schedule.
Write repeatable outputs
Use the supplied window to select input records and name outputs. Write outputs so repeating the same window replaces or deduplicates its results. An attempt is one try at processing a window. A task run ID identifies an attempt; use the window bounds when identifying the data being processed.Nominal time and actual start
A tick is the nominal scheduled time. Wherobots submits the run and starts its compute afterward. Your script’s window stays tied to the nominal times even when execution starts late. For an interval, the first run is one interval after you create the schedule or change its interval, unless you choose the time of the next run. Resuming keeps the existing timing. Allow additional time for Wherobots to apply changes and start compute. Observed run submission delays are about a minute, with compute startup taking another 20 seconds to a few minutes. These are observations, not a service-level agreement or guaranteed start times. Check the displayed next scheduled time after creating, editing, or resuming a schedule.Processing windows
A processing window is the time range a run processes. Each run receives[windowStart, windowEnd): include records at the start and exclude records at the end. Read the supplied environment variables.
Every scheduled run processes a full window that ends at its tick. For an interval, the window is the full interval before the tick. For cron, it is the period since the previous matching time. This holds for the first run after you create or resume a schedule too.
Editing the script, arguments, runtime settings, or Run as identity doesn’t change the timing. Already-submitted execution requests keep the settings they captured.
Pausing skips the scheduled times while the schedule is paused, and Resume continues on the same schedule. Wherobots doesn’t record the paused time as a gap or run it later.
Changing the timing can make the next window overlap the last processed window, so some data is processed again, or start after it, so some data isn’t processed. Before you save, the schedule form shows the last processed window, the window the next run processes, and any overlap or gap between them.
The journal is the schedule’s record of ticks and their outcomes. Manual runs appear separately in history. Older schedules can show SKIPPED gap entries recorded under earlier scheduling behavior; they are historical and launched no compute.
Overlap
If the previous scheduled run is still active, the next scheduled tick is recorded asSKIPPED because of overlap. Its window stays unprocessed. The following window does not expand to include it. Rerun the skipped entry to process that window.
Timezones and daylight saving time
All intervals measure elapsed time. A one-day interval means 24 hours, so its local clock time can shift when daylight saving time changes. The timezone on an interval helps you choose the time of the next run; it does not convert the interval into a calendar recurrence. Cron follows the selected timezone’s calendar. For0 6 * * * in America/Los_Angeles, ticks occur at 06:00 local time. During the spring clock change, a cron time in the missing hour does not occur. During the autumn clock change, a time in the repeated hour occurs twice at distinct Coordinated Universal Time (UTC) instants. Processing windows can therefore have different elapsed lengths.
Manual runs and backfill
Run manually starts a manual execution with explicit Window start (inclusive) and Window end (exclusive) bounds. Review the editable defaults. Select Use most recent scheduled window when available, or Use past 24 hours to select a recent window. The Cloud UI shows the bounds in the time zone from your Settings preferences. The start must precede the end. The API requires timezone-aware timestamps for both bounds, including for scripts that ignore the window. Wherobots converts them to UTC without aligning them to the schedule or clamping them. Run manually works before the scheduler has applied a new configuration and while a schedule is paused or auto-disabled. Manual runs can overlap scheduled runs, reruns, or other manual runs. Quota and billing still apply. Manual runs aren’t linked to a scheduled time, so they don’t fill journal gaps, even if their bounds match a missing window. For historical backfill, recover the recorded tick or gap.Next steps
Create a schedule
Configure and verify recurring execution.
Monitor and recover
Inspect attempts and recover unprocessed windows.

