compose/internal/e2e
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
..
fixtures
testdata jobs: register scheduled jobs on create and up, remove them on down 2026-11-17 13:48:57 +01:00
api_socket_test.go
assert.go
bridge_convert_output_test.go
bridge_test.go
build_test.go
cancel_test.go
cascade_test.go
checks.go
commit_test.go
compose_environment_test.go
compose_exec_test.go
compose_run_build_once_test.go
compose_run_test.go
compose_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
compose_up_test.go feat(up): stream the logs while --wait waits for the services 2026-11-17 09:35:33 +01:00
config_test.go
configs_test.go
container_name_test.go
cp_test.go
dry_run_hooks_test.go
e2e_config_plugin.go
e2e_config_standalone.go
env_file_test.go
events_test.go
exec_test.go
export_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
expose_test.go
framework.go
healthcheck_test.go
hooks_test.go fix(pre_start): name the hook when its container cannot start 2026-11-17 09:21:06 +01:00
image_identity_corner_test.go
image_identity_test.go
images_test.go
ipc_test.go
jobs_test.go jobs: register scheduled jobs on create and up, remove them on down 2026-11-17 13:48:57 +01:00
logs_test.go
main_test.go
model_test.go
multiplatform_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
networks_test.go
noDeps_test.go
orphans_test.go
pause_test.go
profiles_test.go
providers_test.go
ps_test.go
publish_test.go
pull_test.go
recreate_no_deps_test.go
remote_git_test.go
remote_oci_test.go
restart_test.go
scale_test.go
scenario.go jobs: register scheduled jobs on create and up, remove them on down 2026-11-17 13:48:57 +01:00
SCENARIO.md
secrets_test.go
start_stop_test.go
testdata_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
umask_test.go
unsupported_attributes_test.go
up_interactive_test.go
up_stale_network_test.go
up_start_failure_test.go
up_test.go
volumes_test.go
wait_test.go
watch_test.go