Component
core/ai-agent/dify-worker
The Dify task worker — the Celery consumer that runs everything a Dify installation does off the request path: indexing uploaded documents into the vector datastore, executing scheduled and queued workflow runs, generating dataset segments, and delivering mail and webhooks. It takes work from the Redis-compatible broker wired through the `cache` uses-socket, reads and writes the platform's relational model in the PostgreSQL backend wired through `backend`, and writes embeddings into the vector datastore wired through `vector_store`. Workflow code nodes it executes run in the sandbox wired through `sandbox`, and outbound requests to addresses a user supplied are routed through the forward proxy wired through `ssrf_proxy`. It serves no port and nothing connects to it — work reaches it through the broker — so it publishes no provides contract and renders as a stateless worker tier. By default nothing reaches Dify's vendor: infra.telemetry_enabled turns on its daily usage event, and infra.marketplace_enabled its daily plugin upgrade check against the plugin marketplace.
版本
出處
- 內容摘要
- sha256:3fe0f7701ed392f6517da04e6d5c7168044cc4ca129ec2430b8abbe34d6969e9
- 發布時間
- 2026-11-15T08:08:52Z
- 簽署身分
- 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:9993f64b63ebc9759ad16bdd7e5e06f5750ca9654bc22e50473426a23a092ea8
此版本的參照
oci://hub.aggrega.ai/component/core/ai-agent/dify-worker:1.1.0開發者參數
開發者在 Aggregate 中設定的值。
| 名稱 | 型別 | 預設 | 必填 | 描述 |
|---|---|---|---|---|
| vector_index_prefix | string | Vector_index | 否 | Name prefix the worker gives the collections it creates in the wired vector datastore. It matches the API server's prefix, because the two write the same collections. |
| indexing_max_segmentation_tokens | integer (min 1) | 4000 | 否 | Longest segment, in tokens, the dataset indexer produces when it splits a document. |
操作員資源規格
操作員依各環境調整的基礎架構資源規格。
| 名稱 | 型別 | 預設 | 必填 | 描述 |
|---|---|---|---|---|
| engine_version | string | 1.17.0 | 否 | Dify API container image tag. The API server, the scheduler and this worker run the same image, so a Release moves all three together. |
| log_level | string (DEBUG | INFO | WARNING | ERROR | CRITICAL) | INFO | 否 | Log verbosity the worker emits. |
| concurrency | integer (min 1) | 4 | 否 | Number of task slots one worker process runs in parallel. Raising it raises throughput and the worker's memory ceiling together, so it is sized with compute.memory. |
| telemetry_enabled | boolean | false | 否 | Lets the worker send Dify's anonymous daily usage event, and the install event when the server's own was not delivered, to otel.dify.ai, falling back to otel.dify.cn. Unset or false, nothing reaches those hosts. Set it on the server and the scheduler too. |
| marketplace_enabled | boolean | false | 否 | Lets the worker reach Dify's plugin marketplace (marketplace.dify.ai): the daily plugin upgrade check the scheduler enqueues, and installing the plugins a new workspace is configured with. Model-provider plugins such as OpenAI's install from the marketplace, so a Release whose applications use one sets it. Unset or false, nothing reaches that host. Set it on the server and the scheduler too. |
| compute | object | — | 否 | — |
| overrides | object (open) | — | 否 | Provider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads. |
輸出契約
此元件透過 uses 拓撲向使用端發布的值。
未宣告任何輸出值。
Uses 插槽
此元件用來連線的相依插槽。經由插槽連接的每個連線,其目標都必須符合該插槽的標籤選擇器,且每個連線可在該插槽宣告的槽位中帶有附加項目。Aggregate 或 Release 經由該插槽連接的每個連線,都必須提供必填槽位。
backend
- 選擇器
- component.aggrega.ai/category=datastore
- 注入
- env
經由此插槽的每個連線可填入的槽位
| 槽位 | 選擇器 | 必填 | 注入 | 敏感 | 描述 |
|---|---|---|---|---|---|
| credential | feature.aggrega.ai/kind=secret | 否 | env | 是 | Optional password the worker presents to the backend this connection reaches, shared with that backend. When attached, supplies the backend password via the credential subsystem; unattached, the Recipe uses the development literal `apppass`, which this catalog publishes, so every Release that leaves the slot unattached shares that password. |
cache
- 選擇器
- component.aggrega.ai/category=datastore
- 注入
- env
經由此插槽的每個連線可填入的槽位
| 槽位 | 選擇器 | 必填 | 注入 | 敏感 | 描述 |
|---|---|---|---|---|---|
| server_ca | feature.aggrega.ai/kind=secret | 否 | file | 是 | Optional authority the worker checks the cache's certificate against while the cache publishes protocol valkey-tls or redis-tls, where the image does not already trust the authority that signs it. Its Secret holds ca.crt. The Recipe mounts the whole Secret read-only and points the cache client and the task broker at the file. The build halts on a server_ca publishing no Secret name, and on one wired to a cache served without TLS. Fill it with core/referenced-secret. |
vector_store
- 選擇器
- datastore.aggrega.ai/engine in (vector, semantic-memory, search)
- 注入
- env
此插槽未宣告任何附加槽位,因此經由它的連線不帶任何附加項目。
sandbox
- 選擇器
- component.aggrega.ai/category=ai-agent
- 注入
- env
經由此插槽的每個連線可填入的槽位
| 槽位 | 選擇器 | 必填 | 注入 | 敏感 | 描述 |
|---|---|---|---|---|---|
| credential | feature.aggrega.ai/kind=secret | 否 | env | 是 | Optional execution-key credential the worker presents on every request to the sandbox this connection reaches. The same credential is attached to the code_execution_key slot on the sandbox, so both ends hold the same value. Unattached, the Recipe uses the pinned development literal `dify-sandbox`, suitable for evaluation only and published in this catalog, so every Release that leaves the slot unattached shares it. |
plugin_daemon
- 選擇器
- component.aggrega.ai/category=ai-agent
- 注入
- env
經由此插槽的每個連線可填入的槽位
| 槽位 | 選擇器 | 必填 | 注入 | 敏感 | 描述 |
|---|---|---|---|---|---|
| credential | feature.aggrega.ai/kind=secret | 否 | env | 是 | Optional credential the worker presents on every call it makes to the plugin runtime this connection reaches. The runtime holds the same key in its plugin_daemon_key slot and the API server presents it on its own connection, so the credential is attached to all three or to none: attaching it to some of them leaves the rest carrying a different value, which renders cleanly and is refused when the call is made. Unattached, the Recipe uses the pinned development literal `dify-plugin-daemon-server-key`, suitable for evaluation only and published in this catalog, so every Release that leaves the slot unattached shares it. |
ssrf_proxy
- 選擇器
- component.aggrega.ai/category=ai-agent
- 注入
- env
此插槽未宣告任何附加槽位,因此經由它的連線不帶任何附加項目。
附加槽位
Feature 附加到此元件的具名繫結點。槽位的選擇器限制哪個 Feature 可以填入該槽位,其注入清單則指明該 Feature 的內容可以如何傳遞。必填槽位必須在每個實例上繫結,方式是在該實例上或其上層範圍中附加項目;敏感槽位則宣告用於處理機密內容。Feature 也可以附加在沒有任何槽位宣告的名稱之下。
| 槽位 | 選擇器 | 必填 | 注入 | 敏感 | 描述 |
|---|---|---|---|---|---|
| secret_key | feature.aggrega.ai/kind=secret | 是 | env | 是 | Required application-secret credential. The worker decrypts stored model-provider credentials under it, so it carries the same secret as the API server. There is no default: the build halts when nothing fills this slot. |
| inner_api_key | feature.aggrega.ai/kind=secret | 否 | env | 是 | Optional credential the plugin runtime presents on every call back into the internal API, which the worker compares against its own. The worker and the API server declare this slot under the same name and the plugin runtime presents it on its connection to the API server, so the credential is attached to all three or to none: attaching it to some of them leaves the rest carrying a different value, which renders cleanly and is refused when the call is made. Unattached, the Recipe uses the pinned development literal `dify-plugin-inner-api-key`, suitable for evaluation only and published in this catalog, so every Release that leaves the slot unattached shares it. |
自我注入允許清單
env
關係
與其他已發布實體之間具型別的邊。沒有已發布目標的參照,會渲染為中斷的邊,而不是連結。
使用
- 使用使用插槽「backend」
component.aggrega.ai/category=datastore
附加槽位:credential
core/datastore/chroma v1.0.0 core/datastore/cognee v1.0.0 core/datastore/documentdb v1.0.0 core/datastore/elasticsearch v1.0.0 core/datastore/etcd v1.0.0 core/datastore/ferretdb v1.0.0 core/datastore/mariadb v1.0.0 core/datastore/mariadb-operator v1.0.0 core/datastore/memcached v1.0.0 core/datastore/milvus v1.0.0 core/datastore/mysql v1.0.0 core/datastore/mysql-innodb-cluster v1.0.0 core/datastore/mysql-operator v1.0.0 core/datastore/opensearch v1.0.0 core/datastore/pgvector v1.0.0 core/datastore/postgres v1.0.0 core/datastore/qdrant v1.0.0 core/datastore/redis v1.0.0 core/datastore/timescaledb v1.0.0 core/datastore/valkey v1.0.0 core/datastore/weaviate v1.0.0 - 使用使用插槽「cache」
component.aggrega.ai/category=datastore
附加槽位:server_ca
core/datastore/chroma v1.0.0 core/datastore/cognee v1.0.0 core/datastore/documentdb v1.0.0 core/datastore/elasticsearch v1.0.0 core/datastore/etcd v1.0.0 core/datastore/ferretdb v1.0.0 core/datastore/mariadb v1.0.0 core/datastore/mariadb-operator v1.0.0 core/datastore/memcached v1.0.0 core/datastore/milvus v1.0.0 core/datastore/mysql v1.0.0 core/datastore/mysql-innodb-cluster v1.0.0 core/datastore/mysql-operator v1.0.0 core/datastore/opensearch v1.0.0 core/datastore/pgvector v1.0.0 core/datastore/postgres v1.0.0 core/datastore/qdrant v1.0.0 core/datastore/redis v1.0.0 core/datastore/timescaledb v1.0.0 core/datastore/valkey v1.0.0 core/datastore/weaviate v1.0.0 - 使用使用插槽「vector_store」
datastore.aggrega.ai/engine in (vector, semantic-memory, search)
未宣告任何附加槽位。
- 使用使用插槽「sandbox」
component.aggrega.ai/category=ai-agent
附加槽位:credential
core/ai-agent/a2a-remote v1.0.0 core/ai-agent/agent-framework v1.0.0 core/ai-agent/agent-framework v1.1.0 core/ai-agent/agenta-api v1.0.0 core/ai-agent/agenta-cron v1.0.0 core/ai-agent/agenta-migrations v1.0.0 core/ai-agent/agenta-runner v1.0.0 core/ai-agent/agenta-services v1.0.0 core/ai-agent/agenta-web v1.0.0 core/ai-agent/agenta-web-mobile v1.0.0 core/ai-agent/agenta-worker-queues v1.0.0 core/ai-agent/agenta-worker-streams v1.0.0 core/ai-agent/anthropic v1.0.0 core/ai-agent/autogen v1.0.0 core/ai-agent/autogpt v1.0.0 core/ai-agent/bedrock v1.0.0 core/ai-agent/bland v1.0.0 core/ai-agent/claude-agent-sdk v1.0.0 core/ai-agent/crewai v1.0.0 core/ai-agent/crewai v1.1.0 core/ai-agent/dify v1.0.0 core/ai-agent/dify v1.1.0 core/ai-agent/dify-plugin-daemon v1.0.0 core/ai-agent/dify-sandbox v1.0.0 core/ai-agent/dify-ssrf-proxy v1.0.0 core/ai-agent/dify-web v1.0.0 core/ai-agent/dify-web v1.1.0 core/ai-agent/dify-worker v1.0.0 core/ai-agent/dify-worker-beat v1.0.0 core/ai-agent/dify-worker-beat v1.1.0 core/ai-agent/dynamiq v1.0.0 core/ai-agent/flowise v1.0.0 core/ai-agent/flowise v1.1.0 core/ai-agent/gemini v1.0.0 core/ai-agent/google-adk v1.0.0 core/ai-agent/google-adk v1.1.0 core/ai-agent/griptape v1.0.0 core/ai-agent/gumloop v1.0.0 core/ai-agent/haystack v1.0.0 core/ai-agent/langflow v1.0.0 core/ai-agent/langflow v1.1.0 core/ai-agent/langgraph v1.0.0 core/ai-agent/langgraph v1.1.0 core/ai-agent/letta v1.0.0 core/ai-agent/librechat v1.0.0 core/ai-agent/librechat v1.1.0 core/ai-agent/librechat v1.2.0 core/ai-agent/lindy v1.0.0 core/ai-agent/livekit-agent-worker v1.0.0 core/ai-agent/llamaindex v1.0.0 core/ai-agent/mastra v1.0.0 core/ai-agent/metagpt v1.0.0 core/ai-agent/n8n v1.0.0 core/ai-agent/n8n v1.1.0 core/ai-agent/open-webui v1.0.0 core/ai-agent/openai-agents-sdk v1.0.0 core/ai-agent/openclaw v1.0.0 core/ai-agent/openhands v1.0.0 core/ai-agent/phidata v1.0.0 core/ai-agent/promptflow v1.0.0 core/ai-agent/pydantic-ai v1.0.0 core/ai-agent/retell v1.0.0 core/ai-agent/rivet v1.0.0 core/ai-agent/semantic-kernel v1.0.0 core/ai-agent/smolagents v1.0.0 core/ai-agent/vapi v1.0.0 core/ai-agent/vertex-ai v1.0.0 - 使用使用插槽「plugin_daemon」
component.aggrega.ai/category=ai-agent
附加槽位:credential
core/ai-agent/a2a-remote v1.0.0 core/ai-agent/agent-framework v1.0.0 core/ai-agent/agent-framework v1.1.0 core/ai-agent/agenta-api v1.0.0 core/ai-agent/agenta-cron v1.0.0 core/ai-agent/agenta-migrations v1.0.0 core/ai-agent/agenta-runner v1.0.0 core/ai-agent/agenta-services v1.0.0 core/ai-agent/agenta-web v1.0.0 core/ai-agent/agenta-web-mobile v1.0.0 core/ai-agent/agenta-worker-queues v1.0.0 core/ai-agent/agenta-worker-streams v1.0.0 core/ai-agent/anthropic v1.0.0 core/ai-agent/autogen v1.0.0 core/ai-agent/autogpt v1.0.0 core/ai-agent/bedrock v1.0.0 core/ai-agent/bland v1.0.0 core/ai-agent/claude-agent-sdk v1.0.0 core/ai-agent/crewai v1.0.0 core/ai-agent/crewai v1.1.0 core/ai-agent/dify v1.0.0 core/ai-agent/dify v1.1.0 core/ai-agent/dify-plugin-daemon v1.0.0 core/ai-agent/dify-sandbox v1.0.0 core/ai-agent/dify-ssrf-proxy v1.0.0 core/ai-agent/dify-web v1.0.0 core/ai-agent/dify-web v1.1.0 core/ai-agent/dify-worker v1.0.0 core/ai-agent/dify-worker-beat v1.0.0 core/ai-agent/dify-worker-beat v1.1.0 core/ai-agent/dynamiq v1.0.0 core/ai-agent/flowise v1.0.0 core/ai-agent/flowise v1.1.0 core/ai-agent/gemini v1.0.0 core/ai-agent/google-adk v1.0.0 core/ai-agent/google-adk v1.1.0 core/ai-agent/griptape v1.0.0 core/ai-agent/gumloop v1.0.0 core/ai-agent/haystack v1.0.0 core/ai-agent/langflow v1.0.0 core/ai-agent/langflow v1.1.0 core/ai-agent/langgraph v1.0.0 core/ai-agent/langgraph v1.1.0 core/ai-agent/letta v1.0.0 core/ai-agent/librechat v1.0.0 core/ai-agent/librechat v1.1.0 core/ai-agent/librechat v1.2.0 core/ai-agent/lindy v1.0.0 core/ai-agent/livekit-agent-worker v1.0.0 core/ai-agent/llamaindex v1.0.0 core/ai-agent/mastra v1.0.0 core/ai-agent/metagpt v1.0.0 core/ai-agent/n8n v1.0.0 core/ai-agent/n8n v1.1.0 core/ai-agent/open-webui v1.0.0 core/ai-agent/openai-agents-sdk v1.0.0 core/ai-agent/openclaw v1.0.0 core/ai-agent/openhands v1.0.0 core/ai-agent/phidata v1.0.0 core/ai-agent/promptflow v1.0.0 core/ai-agent/pydantic-ai v1.0.0 core/ai-agent/retell v1.0.0 core/ai-agent/rivet v1.0.0 core/ai-agent/semantic-kernel v1.0.0 core/ai-agent/smolagents v1.0.0 core/ai-agent/vapi v1.0.0 core/ai-agent/vertex-ai v1.0.0 - 使用使用插槽「ssrf_proxy」
component.aggrega.ai/category=ai-agent
未宣告任何附加槽位。
core/ai-agent/a2a-remote v1.0.0 core/ai-agent/agent-framework v1.0.0 core/ai-agent/agent-framework v1.1.0 core/ai-agent/agenta-api v1.0.0 core/ai-agent/agenta-cron v1.0.0 core/ai-agent/agenta-migrations v1.0.0 core/ai-agent/agenta-runner v1.0.0 core/ai-agent/agenta-services v1.0.0 core/ai-agent/agenta-web v1.0.0 core/ai-agent/agenta-web-mobile v1.0.0 core/ai-agent/agenta-worker-queues v1.0.0 core/ai-agent/agenta-worker-streams v1.0.0 core/ai-agent/anthropic v1.0.0 core/ai-agent/autogen v1.0.0 core/ai-agent/autogpt v1.0.0 core/ai-agent/bedrock v1.0.0 core/ai-agent/bland v1.0.0 core/ai-agent/claude-agent-sdk v1.0.0 core/ai-agent/crewai v1.0.0 core/ai-agent/crewai v1.1.0 core/ai-agent/dify v1.0.0 core/ai-agent/dify v1.1.0 core/ai-agent/dify-plugin-daemon v1.0.0 core/ai-agent/dify-sandbox v1.0.0 core/ai-agent/dify-ssrf-proxy v1.0.0 core/ai-agent/dify-web v1.0.0 core/ai-agent/dify-web v1.1.0 core/ai-agent/dify-worker v1.0.0 core/ai-agent/dify-worker-beat v1.0.0 core/ai-agent/dify-worker-beat v1.1.0 core/ai-agent/dynamiq v1.0.0 core/ai-agent/flowise v1.0.0 core/ai-agent/flowise v1.1.0 core/ai-agent/gemini v1.0.0 core/ai-agent/google-adk v1.0.0 core/ai-agent/google-adk v1.1.0 core/ai-agent/griptape v1.0.0 core/ai-agent/gumloop v1.0.0 core/ai-agent/haystack v1.0.0 core/ai-agent/langflow v1.0.0 core/ai-agent/langflow v1.1.0 core/ai-agent/langgraph v1.0.0 core/ai-agent/langgraph v1.1.0 core/ai-agent/letta v1.0.0 core/ai-agent/librechat v1.0.0 core/ai-agent/librechat v1.1.0 core/ai-agent/librechat v1.2.0 core/ai-agent/lindy v1.0.0 core/ai-agent/livekit-agent-worker v1.0.0 core/ai-agent/llamaindex v1.0.0 core/ai-agent/mastra v1.0.0 core/ai-agent/metagpt v1.0.0 core/ai-agent/n8n v1.0.0 core/ai-agent/n8n v1.1.0 core/ai-agent/open-webui v1.0.0 core/ai-agent/openai-agents-sdk v1.0.0 core/ai-agent/openclaw v1.0.0 core/ai-agent/openhands v1.0.0 core/ai-agent/phidata v1.0.0 core/ai-agent/promptflow v1.0.0 core/ai-agent/pydantic-ai v1.0.0 core/ai-agent/retell v1.0.0 core/ai-agent/rivet v1.0.0 core/ai-agent/semantic-kernel v1.0.0 core/ai-agent/smolagents v1.0.0 core/ai-agent/vapi v1.0.0 core/ai-agent/vertex-ai v1.0.0
被使用於
使用插槽「runner」
使用插槽「api」
使用插槽「runner」
使用插槽「api」
使用插槽「services」
使用插槽「api」
使用插槽「services」
使用插槽「services」
使用插槽「sandbox」
使用插槽「plugin_daemon」
使用插槽「ssrf_proxy」
使用插槽「sandbox」
使用插槽「plugin_daemon」
使用插槽「ssrf_proxy」
使用插槽「api」
使用插槽「ssrf_proxy」
使用插槽「api」
使用插槽「api」
使用插槽「sandbox」
使用插槽「plugin_daemon」
使用插槽「ssrf_proxy」
使用插槽「target_agent」
使用插槽「scrape_target」
適用於
適用於
適用於
實作
實作