compose/pkg/api
Guillaume Lours 723ce2bf4e jobs: register scheduled jobs on create and up, remove them on down
A job with a schedule is registered through the engine's jobs extension,
which fires it on its own clock; create and up register it, up stays
re-runnable since Create is idempotent on the spec hash, and a full down
removes the jobs. The extension ships disabled by default and cannot be
listed, so Compose probes it with a List scoped to the project; when the
engine cannot run jobs, up, create and start refuse the project before
creating anything, and down ignores the jobs. A job the file no longer
declares is reported by up and removed by --remove-orphans, unless its
run is in progress. The spec is stable: sorted entries, no volatile labels,
services referenced by container name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-11-17 13:48:57 +01:00
..
api.go fix(up): keep handling Ctrl+C once the log monitor has ended 2026-11-17 09:35:33 +01:00
api_test.go build(deps): adopt compose-go jobs and the container-spec layering 2026-09-21 16:35:20 +02:00
context.go Introduce abstractions to support SDK usage without requiring Docker CLI 2025-10-27 16:17:50 +01:00
create_options.go feat(api): reject an unknown recreate policy instead of treating it as diverged 2026-11-16 17:01:39 +01:00
create_options_test.go fix(up): keep handling Ctrl+C once the log monitor has ended 2026-11-17 09:35:33 +01:00
doc.go fix(up): keep handling Ctrl+C once the log monitor has ended 2026-11-17 09:35:33 +01:00
env.go restore support for COMPOSE_COMPATIBILITY 2025-12-07 18:42:04 +01:00
errors.go chore(api): deprecate the API surface that nothing produces or reads 2026-11-16 17:01:39 +01:00
errors_test.go feat(api): a typed error for a service with no running container 2026-11-16 17:01:39 +01:00
event.go docs(api): state that EventProcessor.Done reports cancellation as failure 2026-11-16 14:34:24 +01:00
feature.go refactor(up): inject the navigation menu instead of importing cmd/formatter 2026-10-12 10:50:38 +02:00
labels.go jobs: register scheduled jobs on create and up, remove them on down 2026-11-17 13:48:57 +01:00
labels_test.go golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
up_options.go fix(up): keep handling Ctrl+C once the log monitor has ended 2026-11-17 09:35:33 +01:00
up_options_test.go feat(up): stream the logs while --wait waits for the services 2026-11-17 09:35:33 +01:00