---
title: "Tech Tip #24: Run flexible jobs when the grid is cleaner"
description: "The same job can cost less carbon at a different hour."
url: https://greencode.ai/tech-tips/24-run-flexible-jobs-when-the-grid-is-cleaner/
---

# Tech Tip #24: Run flexible jobs when the grid is cleaner

**The same job can cost less carbon at a different hour.**

[Watch the video](https://media.greencode.ai/shorts/run-flexible-jobs-when-the-grid-is-cleaner-64f792bcd7ce.mp4)

Video created by [explainapaper.com](https://explainapaper.com/?utm_source=greencode.ai&utm_medium=film&utm_campaign=made-by)

### The problem

Batch jobs, backups, CI and model retraining run at fixed times chosen years ago, regardless of how clean the electricity is.

### The fix you can use today

- Find jobs that can wait a few hours.
- Schedule them against a carbon-intensity forecast (Great Britain's forecasts run more than 96 hours ahead).
- Keep deadlines and SLAs as hard limits.

The Green Software Foundation suggests running flexible jobs when the grid is cleaner. GreenCode draws on these patterns when it checks software.

### Tools that help

- [GreenCode Constitution skill](https://greencode-constitution.org/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) (GreenCode researchers): open-source energy principles and a catalogue of 37 energy anti-patterns that an AI coding agent can follow to find and fix waste like this
- [Carbon Aware SDK](https://github.com/Green-Software-Foundation/carbon-aware-sdk?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) (Green Software Foundation): an API and CLI for grid carbon-intensity data, so flexible work can move to cleaner times or places
- [Carbon Intensity API](https://carbonintensity.org.uk/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): regional carbon-intensity forecasts for Great Britain, more than 96 hours ahead

### How GreenCode helps

GreenCode helps tackle this by holding its own heavy AI jobs for cleaner power. It also keeps its AI lean, with small fine-tuned models, retrieval so a model reads only what it needs, and each request routed to the smallest capable component. [More on this](https://greencode.ai/feature/green-optimised-generative-ai/).

### Tags

#carbon-aware#scheduling#ci-cd

### Sources

- [GreenCode State of the Art Review, D2.1 (2025), PDF p. 54: carbon-aware scheduling for CI/CD, batch analytics and retraining](https://greencode.ai/publications/d2-1-state-of-the-art-review/)
- [GreenCode Constitution (Kapenekakis et al., GreenAI workshop, ECML PKDD 2026): carbon-unaware scheduling in Tier 4](https://greencode.ai/publications/greencode-constitution-agent-principles-for-optimizing-code-and-llm-inference-en/)
- [What policy makers can do (Carbon Intensity API forecasts)](https://greencode.ai/news/policy-software-and-ai-energy/)
- [Green Software Foundation, Green Software Patterns: Time-shift Kubernetes cron jobs](https://github.com/Green-Software-Foundation/patterns/blob/main/docs/operations/time-shift-kubernetes-cron-jobs.md?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode)
- [Green Software Foundation, Green Software Patterns: carbon-aware scheduling and region selection for AI workloads](https://github.com/Green-Software-Foundation/patterns/blob/main/docs/operations/carbon-aware-ai-scheduling.md?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode)
- [Software Sustainability Institute, Green Data Practices: temporal and spatial shifting of flexible analyses](https://www.software.ac.uk/guide/green-data-practices-efficient-utilisation-research-data?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode)
- [Sustainable Web Design, Guideline 4.9: carbon shifting](https://sustainablewebdesign.org/guidelines/4-9-assess-the-impact-and-requirements-of-data-processing/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode)
- [W3C, Web Sustainability Guidelines: carbon-aware scheduling and shifting](https://www.w3.org/TR/web-sustainability-guidelines/#carbon-shifting)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#24**
- For **Ops and infrastructure**
- Category **Cloud and infrastructure**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
