Recipe
task
The generic ephemeral compute primitive on Docker Compose: one service running infra.image to completion, with restart set to no, so Compose never starts it again when it exits. Reach for helm/task on Kubernetes, which also runs a task on a schedule. With nothing attached, the service runs once each time the stack is started with docker compose up. With core/manual-trigger attached, it carries the profile manual, so docker compose up leaves it stopped and each run is one someone starts with docker compose run --rm <service>, the service named after the component. A task with a schedule is refused by name, as Docker Compose has no scheduler. The service is sized from infra.compute and publishes no port. The developer's timeout value reaches the container as TASK_TIMEOUT by default for the application's own code to honour, as Compose sets no deadline on a run. An edge's inject block dictates what reaches the container: each env entry a variable under that name, beside TASK_TIMEOUT, which no edge may dictate while it is the default, and each file entry a file from a Compose config. The component's own inject block delivers env entries the same way, and one reading timeout alone replaces TASK_TIMEOUT, its default name. An arg entry, or any other mechanism, is refused by name: the recipe renders no command line.
Phiên bản
Nguồn gốc
- Digest nội dung
- sha256:b723ff809d0595946b9c81b7ec63ef7254f7fa6fdad9c78516992dfde45d8bc8
- Đã xuất bản
- 2026-11-10T10:20:58Z
- Danh tính ký
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
Chữ ký
- Chính thứcapplication/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:d705c6452e7f47f6dd490540586565e8d8d2d79aa8028b94ccdb2745b55101cd
Tham chiếu ở phiên bản này
oci://hub.aggrega.ai/recipe/compose/task:1.0.0- Đích
- —
- Triển khai
- core/compute/task:1.0.0
Cung cấp
Các mẫu con trỏ xác định mà công thức này nối cho bên tiêu thụ.
Chưa khai báo mẫu provides nào.
Workload
Chưa khai báo mẫu khối lượng công việc nào.
Giá trị cục bộ
| Tên | Mẫu |
|---|---|
| instance_id | {{ .context.instance_id }} |
| cpu_millicores | {{- $c := toString (optional (optional .infra "compute" dict) "cpu" "") -}} {{- if regexMatch `^[0-9]+m
|
| memory_mib | {{- $m := toString (optional (optional .infra "compute" dict) "memory" "") -}} {{- if regexMatch `^[0-9]+Mi
|
| cpus | {{- $mc := atoi (toString .locals.cpu_millicores) -}} {{- if mod $mc 1000 -}}{{ printf "%d.%03d" (div $mc 1000) (mod $mc 1000) | trimSuffix "0" | trimSuffix "0" }} {{- else -}}{{ div $mc 1000 }} {{- end -}} |
| memory_bytes | {{ mul (atoi (toString .locals.memory_mib)) 1048576 }} |
Ánh xạ values
Chưa khai báo ánh xạ values nào.
Quan hệ
Các cạnh có kiểu đi tới và đi từ các thực thể đã xuất bản khác. Một tham chiếu không có đích đã xuất bản được hiển thị là một cạnh bị đứt thay vì một liên kết.
Sử dụng
- triển khaitriển khai
core/compute/task:1.0.0
Được sử dụng bởi
Không có gì trong danh mục phụ thuộc vào thực thể này.