Find the cleanest time to run a job
find_clean_windowIdentify when each cloud region's grid will be cleanest in the next 72 hours and how much carbon you save by delaying a flexible batch job.
Instructions
For flexible batch jobs, find when in the next hours (up to 72) each candidate region's grid is forecast to be cleanest, and how much that saves compared with starting now. Local times default to this computer's time zone. Needs ELECTRICITY_MAPS_API_TOKEN with forecast access. Limit candidates with regions, providers or countries (at most 15 grid zones per call).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many options to return. Default 5. | |
| regions | No | Candidate regions as provider/id, e.g. ["aws/eu-north-1", "gcp/europe-west9"]. Tip: shortlist with rank_regions first. | |
| timezone | No | IANA time zone for local start times, e.g. "Australia/Brisbane". Defaults to the time zone of the computer running Eco Router; set it when the user is elsewhere. | |
| countries | No | Only consider regions in these countries or groups (EU, EEA). | |
| energyKwh | No | Estimated job energy, to report emissions for each option. | |
| providers | No | Only consider these cloud providers. | |
| withinHours | No | The job must finish within this many hours from now. Default 24, max 72. | |
| durationHours | Yes | How long the job runs, in whole hours. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| results | Yes | ||
| timezone | Yes | ||
| generatedAt | Yes | ||
| unavailable | Yes | ||
| withinHours | Yes | ||
| durationHours | Yes | ||
| evaluatedZones | Yes | ||
| timezoneSource | Yes | ||
| evaluatedRegions | Yes |