You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Over the past year we at JobRunr have been exploring how we can shift non-urgent workloads to moments when the grid is greener, and how to make that easy for developers to implement in existing Java applications. And we're happy to announce that we've finally found a way to do so - starting in Europe 🌍 thanks to ENTSO-e.
// Schedule this job when carbon intensity is minimal over the next 24hBackgroundJob.schedule(
CarbonAware.before(now().plus(1, DAYS)),
MyService::doHeavyWork
);
// Schedule this job next night between midnight and 6am when carbon intensity is minimalBackgroundJob.schedule(
CarbonAware.between(tomorrow(LocalTime.MIDNIGHT), tomorrow(LocalTime.of(6,0))),
TestService::doStaticWork
);
// Schedule this job next night between around 1pm with a margin of 6 hours (3h before 1pm and 3h after 1pm) when carbon intensity is minimalBackgroundJob.schedule(
CarbonAware.at(tomorrow(LocalTime.of(13,0)), Duration.ofHours(3)),
TestService::doStaticWork
);
Scheduling a recurring job carbon-aware
// Schedule this job daily between 1am and 7am when carbon intensity is minimalBackgroundJob.scheduleRecurrently(
CarbonAware.dailyBetween(1, 7),
MyService::doHeavyWork
);
// Schedule this job daily around 4am with a margin of 4 hours (2h before 4am and 2h after 4am) when carbon intensity is minimalBackgroundJob.scheduleRecurrently(
CarbonAware.cron(daily(4), Duration.of(2, HOURS)),
MyService::doHeavyWork
);
US & rest of the world
Later this year, we plan to add support for the 🌎 US and the rest of the world.
Webinar
We’re hosting a live-coding webinar on July 9th focused on carbon-aware background job scheduling in Java using the new JobRunr v8.
In this session, we’ll walk through:
How carbon intensity data can be used to schedule Java background jobs
What “carbon-aware job scheduling” means in practice
We are really looking forward to sharing what we’ve worked on. Hopefully we’ll see some of you there and feel free to share this webinar with all your friends in the Java community!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Over the past year we at JobRunr have been exploring how we can shift non-urgent workloads to moments when the grid is greener, and how to make that easy for developers to implement in existing Java applications. And we're happy to announce that we've finally found a way to do so - starting in Europe 🌍 thanks to ENTSO-e.
With JobRunr - an open-source, distributed Java background job scheduler for Java now processing over 1 billion jobs per day - developers can define a scheduling margin. JobRunr will then choose the most carbon-efficient time 🍃 💨 ☀️ within that window to run the job.
Some examples
Scheduling a single job carbon-aware
Scheduling a recurring job carbon-aware
US & rest of the world
Later this year, we plan to add support for the 🌎 US and the rest of the world.
Webinar
We’re hosting a live-coding webinar on July 9th focused on carbon-aware background job scheduling in Java using the new JobRunr v8.
In this session, we’ll walk through:
When
🗓️ Date: Wednesday, July 9, 2026
⏰ Times:
🔗 Registration: https://www.jobrunr.io/en/blog/webinar-v8/
We are really looking forward to sharing what we’ve worked on. Hopefully we’ll see some of you there and feel free to share this webinar with all your friends in the Java community!
Ronald & the JobRunr team
Beta Was this translation helpful? Give feedback.
All reactions