ℹ️Scheduled jobs are now supported. A job is a one-shot unit of work declared in the top-level jobs: element of your Compose file, run on demand or on a schedule.
Scheduling needs Docker Engine 29.10 or later with the jobs extension enabled (it is off by default: dockerd --extension-enable org.mobyproject.jobs.v0). Manual jobs keep working on any engine, and projects that declare no jobs are unaffected.
docker compose up (or create) registers the scheduled jobs with the engine, which fires them on its own clock; docker compose down removes them. On an engine without jobs support, up refuses a project with scheduled jobs before creating anything.
docker compose run backup triggers a job right away: its dependencies start first, its logs are streamed and its exit code is returned. On an engine without jobs support, it runs as a one-off service with a warning, as before.
✨ Improvements
Jobs
Jobs: add support for one-shot and scheduled jobs by @glours in #14155
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [docker/compose](https://github.com/docker/compose) | minor | `5.7.2` → `5.8.0` |
| [docker/compose](https://github.com/docker/compose) | minor | `v5.7.2` → `v5.8.0` |
---
### Release Notes
<details>
<summary>docker/compose (docker/compose)</summary>
### [`v5.8.0`](https://github.com/docker/compose/releases/tag/v5.8.0)
[Compare Source](https://github.com/docker/compose/compare/v5.7.2...v5.8.0)
##### What's Changed
> ℹ️ **Scheduled jobs are now supported.** A job is a one-shot unit of work declared in the top-level `jobs:` element of your Compose file, run on demand or on a schedule.
> Scheduling needs **Docker Engine 29.10 or later with the jobs extension enabled** (it is off by default: `dockerd --extension-enable org.mobyproject.jobs.v0`). Manual jobs keep working on any engine, and projects that declare no jobs are unaffected.
```yaml
services:
db:
image: postgres
jobs:
backup:
image: backup-tool
depends_on: [db]
triggers:
schedule:
- cron: "0 3 * * *"
```
> - `docker compose up` (or `create`) registers the scheduled jobs with the engine, which fires them on its own clock; `docker compose down` removes them. On an engine without jobs support, `up` refuses a project with scheduled jobs before creating anything.
> - `docker compose run backup` triggers a job right away: its dependencies start first, its logs are streamed and its exit code is returned. On an engine without jobs support, it runs as a one-off service with a warning, as before.
##### ✨ Improvements
**Jobs**
- Jobs: add support for one-shot and scheduled `jobs` by [@​glours](https://github.com/glours) in [#​14155](https://github.com/docker/compose/pull/14155)
**Full Changelog**: <https://github.com/docker/compose/compare/v5.7.2...v5.8.0>
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMTYuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjExNi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlL2F1dG9tZXJnZSJdfQ==-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
5.7.2→5.8.0v5.7.2→v5.8.0Release Notes
docker/compose (docker/compose)
v5.8.0Compare Source
What's Changed
✨ Improvements
Jobs
jobsby @glours in #14155Full Changelog: https://github.com/docker/compose/compare/v5.7.2...v5.8.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate CLI.