Climate aware task scheduler
Project description
CATS: Climate-Aware Task Scheduler
CATS is a Climate-Aware Task Scheduler. It schedules cluster jobs to minimize predicted carbon intensity of running the process. It was created as part of the 2023 Collaborations Workshop.
The Climate-Aware Task Scheduler is a lightweight Python package designed to schedule tasks based on the estimated carbon intensity of the electricity grid at any given moment. This tool uses real-time carbon intensity data from the National Grid ESO via their API to estimate the carbon intensity of the electricity grid, and schedules tasks at times when the estimated carbon intensity is lowest. This helps to reduce the carbon emissions associated with running computationally intensive tasks, making it an ideal solution for environmentally conscious developers.
Currently CATS only works in the UK. If you are aware of APIs for realtime grid carbon intensity data in other countries please open an issue and let us know.
Features
- Estimates the carbon intensity of the electricity grid in real-time
- Schedules tasks based on the estimated carbon intensity, minimizing carbon emissions
- Provides a simple and intuitive API for developers
- Lightweight and easy to integrate into existing workflows
- Supports Python 3.9+
Installation
Install via pip as follows:
pip install climate-aware-task-scheduler
To install the development version:
pip install git+https://github.com/GreenScheduler/cats
Documentation
Documentation is available at greenscheduler.github.io/cats/.
We recommend the quickstart if you are new to CATS. CATS can optionally display carbon footprint savings using a configuration file.
Console demonstration
CATS predicting optimal start time for the ls command in the OX1 postcode:
Contributing
We welcome contributions from the community! If you find a bug or have an idea for a new feature, please open an issue on our GitHub repository or submit a pull request.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file climate_aware_task_scheduler-1.1.0.tar.gz.
File metadata
- Download URL: climate_aware_task_scheduler-1.1.0.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bbc1492be4a055914ad3ca5b2747ab0a99289c6cfeaeb293f02a178d5823a2e
|
|
| MD5 |
461c2fb1bef2598ed0e1b135969727be
|
|
| BLAKE2b-256 |
6f41572179cb9cb27ed9245236dd1a75a9ec9a36a0a523d8fb563b1cee8cb8f4
|
Provenance
The following attestation bundles were made for climate_aware_task_scheduler-1.1.0.tar.gz:
Publisher:
publish.yml on GreenScheduler/cats
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
climate_aware_task_scheduler-1.1.0.tar.gz -
Subject digest:
4bbc1492be4a055914ad3ca5b2747ab0a99289c6cfeaeb293f02a178d5823a2e - Sigstore transparency entry: 251691510
- Sigstore integration time:
-
Permalink:
GreenScheduler/cats@eb36242c1252eb0e5ace73740cece10f737d0b02 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/GreenScheduler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb36242c1252eb0e5ace73740cece10f737d0b02 -
Trigger Event:
release
-
Statement type:
File details
Details for the file climate_aware_task_scheduler-1.1.0-py3-none-any.whl.
File metadata
- Download URL: climate_aware_task_scheduler-1.1.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
207b3cf988b41ff55bc379168c0ca017bafba6348660af13c995043173c62e85
|
|
| MD5 |
43b5c196f7979067f61212dd93b99835
|
|
| BLAKE2b-256 |
947d132fa9c8d406e67b37c4df0582d9456e8dfc21425e97dcb9ed919ab7c87c
|
Provenance
The following attestation bundles were made for climate_aware_task_scheduler-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on GreenScheduler/cats
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
climate_aware_task_scheduler-1.1.0-py3-none-any.whl -
Subject digest:
207b3cf988b41ff55bc379168c0ca017bafba6348660af13c995043173c62e85 - Sigstore transparency entry: 251691513
- Sigstore integration time:
-
Permalink:
GreenScheduler/cats@eb36242c1252eb0e5ace73740cece10f737d0b02 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/GreenScheduler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb36242c1252eb0e5ace73740cece10f737d0b02 -
Trigger Event:
release
-
Statement type: