Component
core/compute/worker
A generic background-worker primitive. Its operational type is `worker` — long-running, stateless compute that pulls from queues or runs background loops with zero inbound application ports — and it adds two optional integer fields, `queue_depth_hint` and `concurrency`, to the shared base schema's documentation knobs. An Aggregate declares this for a component that consumes work rather than accepting inbound application traffic, which is what `server` is for. Declaring no `provides`, it publishes nothing across an edge. On a Kubernetes cluster it is a Deployment. In an AWS account with an ECS cluster and a VPC, terraform/worker-ecs and cloudformation/worker-ecs run it as an Amazon ECS service on Fargate. In a Google Cloud project with a VPC network, terraform/worker-cloud-run runs it as a Cloud Run worker pool; in an Azure subscription with a Container Apps environment, terraform/worker-container-apps as a container app with no ingress. The catalog pins no image, so nothing renders until the Release sets `infra.image`. The image is the Release's own code, so an edge from this component delivers what its `inject:` block dictates: `env` entries become variables everywhere, beside both values' default names, which the component's own `env` entries may replace and, while each is the default, no edge may dictate; `file` entries files on Kubernetes and Container Apps alone; and `arg` or any other mechanism is refused by name, as no realization renders a command line. A `core/secret-value` attachment's value is rendered in the clear on every realization; no realization delivers `core/referenced-secret` or `core/random-password` to it, and the helm realization refuses either by name.
Nguồn gốc
- Digest nội dung
- sha256:eaf961fd361445f4512b58fad46e497d53ac752d243406b9395ec8b3c8110bb3
- Đã xuất bản
- 2026-11-10T10:10:20Z
- 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:13aedbc915f892c29dda59a0edb42204121785a99b8bcf9817edaeef5420153b
Tham chiếu ở phiên bản này
oci://hub.aggrega.ai/component/core/compute/worker:1.0.0Tham số của nhà phát triển
Các giá trị mà nhà phát triển đặt trong Aggregate.
Mở rộng BaseComponents#/schemas/BaseComponentParameter
| Tên | Kiểu | Mặc định | Bắt buộc | Mô tả |
|---|---|---|---|---|
| queue_depth_hint | integer (min 0) | — | không | — |
| concurrency | integer (min 1) | — | không | — |
Định cỡ của người vận hành
Định cỡ hạ tầng mà người vận hành tinh chỉnh theo từng môi trường.
| Tên | Kiểu | Mặc định | Bắt buộc | Mô tả |
|---|---|---|---|---|
| image | string | — | không | Container image running the worker loop. |
| replicas | integer (min 1) | 1 | không | Replica count, the number of tasks on Amazon ECS, of instances in a Cloud Run worker pool and of replicas on Container Apps, up to 300 there. Each replica pulls its own work, so raising it widens throughput rather than sharing one queue position. |
| compute | object | — | không | — |
| overrides | object (open) | — | không | Provider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads: the Amazon ECS realizations read the cluster, subnets, security groups and roles the service runs under, each under its target's own spelling (subnet_ids on terraform, Subnets on CloudFormation), the Cloud Run realization the project, region, VPC network and service account the worker pool runs in, the Container Apps realization the environment and resource group the app runs in and the identities and registry it pulls with, and the Kubernetes realization reads none of its keys. |
Hợp đồng đầu ra
Các giá trị mà thành phần này xuất bản cho bên tiêu thụ qua cấu trúc liên kết uses.
Chưa khai báo giá trị đầu ra nào.
Các socket uses
Các socket phụ thuộc mà thành phần này kết nối qua. Đích của mọi kết nối được nối qua một socket phải thỏa mãn bộ chọn nhãn của socket đó, và mỗi kết nối có thể mang theo phần đính kèm trong các slot mà socket khai báo. Một slot bắt buộc phải được đáp ứng bởi mỗi kết nối mà Aggregate hoặc Release nối qua socket.
Chưa khai báo socket uses nào.
Slot đính kèm
Các điểm liên kết có tên mà tại đó một Feature được gắn vào thành phần này. Bộ chọn của một slot giới hạn Feature nào có thể lấp đầy nó, và danh sách tiêm của slot nêu cách nội dung của Feature có thể được chuyển giao. Một slot bắt buộc phải được liên kết trên mọi thể hiện, bằng một phần đính kèm trên thể hiện đó hoặc ở một phạm vi phía trên nó, và một slot nhạy cảm được khai báo để xử lý nội dung bí mật. Một Feature cũng có thể được gắn dưới một tên mà không slot nào khai báo.
Chưa khai báo slot đính kèm nào.
Danh sách cho phép tự tiêm
env
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
- $refmở rộng lược đồ (values)
BaseComponents#/schemas/BaseComponentParameter
Được sử dụng bởi
sử dụng socket «scrape_target»
áp dụng cho
áp dụng cho
áp dụng cho
triển khai
triển khai
triển khai
triển khai
triển khai