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.
버전
출처
- 콘텐츠 다이제스트
- sha256:d26d8129bdf7b3ae49ed0cb83c3cdb1cb768e8378e1cba79926798cf29267ce5
- 게시일
- 2026-11-15T08:09:30Z
- 서명 ID
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
서명
- 공식application/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:ae0e7d37f7364bfc07f288a81545afa2af0891bc40185cc3dde00ebad88d3185
이 버전의 참조
oci://hub.aggrega.ai/recipe/compose/task:1.0.1- 대상
- —
- 구현 대상
- core/compute/task:1.0.1
제공
이 레시피가 소비자를 위해 배선하는 결정적 포인터 템플릿입니다.
선언된 provides 템플릿이 없습니다.
Workload
선언된 워크로드 템플릿이 없습니다.
로컬 변수
| 이름 | 템플릿 |
|---|---|
| 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 }} |
값 매핑
선언된 값 매핑이 없습니다.
관계
게시된 다른 엔터티와 주고받는 타입 지정 에지입니다. 게시된 대상이 없는 참조는 링크가 아닌 끊어진 에지로 표시됩니다.
사용함
- 구현구현
core/compute/task:1.0.1
사용됨
카탈로그에서 이 엔터티에 의존하는 것이 없습니다.