Docker Compose v5.8.0 adds scheduled jobs support
Docker Compose v5.8.0 introduces new support for scheduled and one-shot jobs, enhancing workflow automation capabilities.
Docker Compose v5.8.0 has been released, bringing a significant new feature: support for scheduled jobs. Developers can now declare one-shot units of work in the top-level jobs: element of their Compose files. These jobs can be run on demand or configured to execute on a schedule.
To utilize scheduled jobs, Docker Engine 29.10 or later is required, with the jobs extension enabled. Manual jobs will continue to function on any engine version. The docker compose up command registers scheduled jobs with the engine, while docker compose down removes them. Running docker compose run [job_name] triggers a job immediately.
Why it matters
This update allows developers to integrate automated tasks directly into their Compose configurations. It simplifies the management of recurring operations, such as backups or data processing, by scheduling them within the Docker ecosystem.