A node's worker label is worker, so a device is only a paired one
- NodeDef `device`/`device_policy` become `worker`/`worker_policy`, the issue `ignored_device` becomes `ignored_worker`, and the SDK's `@node` takes `worker=` and `worker_policy=` - FlowStore._migrate renames the keys in published and draft documents once, bumping their version; a queued run's `needs` reads the old key - placement passes the label as `label`, client regenerated - docs: worker placement wording, MCP issuer without DOMAIN, device rows in the CLI data directory and the API table, device links in compose comments
This commit is contained in:
@@ -2606,7 +2606,7 @@ export const NodeDef_InputSchema = {
|
||||
title: 'Timeout',
|
||||
description: "Seconds this node's code may be silent before it is stopped. A yield or an emit resets the clock, and the first call's imports are not charged to it. 0 disables the limit: the node runs until it finishes, and only a dead worker fails the call. Empty inherits the engine default."
|
||||
},
|
||||
device: {
|
||||
worker: {
|
||||
anyOf: [
|
||||
{
|
||||
type: 'string'
|
||||
@@ -2615,14 +2615,14 @@ export const NodeDef_InputSchema = {
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
title: 'Device',
|
||||
title: 'Worker',
|
||||
description: "Label of the worker this node's code must run on, such as 'gpu'. Empty means the engine's own workers. A run needing a label no attached worker carries waits rather than failing."
|
||||
},
|
||||
device_policy: {
|
||||
worker_policy: {
|
||||
type: 'string',
|
||||
enum: ['require', 'prefer'],
|
||||
title: 'Device Policy',
|
||||
description: 'What to do when no worker carries `device`: wait for one, or run locally anyway.',
|
||||
title: 'Worker Policy',
|
||||
description: 'What to do when no worker carries `worker`: wait for one, or run locally anyway.',
|
||||
default: 'require'
|
||||
},
|
||||
cache: {
|
||||
@@ -2726,7 +2726,7 @@ export const NodeDef_OutputSchema = {
|
||||
title: 'Timeout',
|
||||
description: "Seconds this node's code may be silent before it is stopped. A yield or an emit resets the clock, and the first call's imports are not charged to it. 0 disables the limit: the node runs until it finishes, and only a dead worker fails the call. Empty inherits the engine default."
|
||||
},
|
||||
device: {
|
||||
worker: {
|
||||
anyOf: [
|
||||
{
|
||||
type: 'string'
|
||||
@@ -2735,14 +2735,14 @@ export const NodeDef_OutputSchema = {
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
title: 'Device',
|
||||
title: 'Worker',
|
||||
description: "Label of the worker this node's code must run on, such as 'gpu'. Empty means the engine's own workers. A run needing a label no attached worker carries waits rather than failing."
|
||||
},
|
||||
device_policy: {
|
||||
worker_policy: {
|
||||
type: 'string',
|
||||
enum: ['require', 'prefer'],
|
||||
title: 'Device Policy',
|
||||
description: 'What to do when no worker carries `device`: wait for one, or run locally anyway.',
|
||||
title: 'Worker Policy',
|
||||
description: 'What to do when no worker carries `worker`: wait for one, or run locally anyway.',
|
||||
default: 'require'
|
||||
},
|
||||
cache: {
|
||||
@@ -4727,7 +4727,7 @@ export const ValidationIssueSchema = {
|
||||
properties: {
|
||||
code: {
|
||||
type: 'string',
|
||||
enum: ['cycle', 'unconnected_input', 'missing_initial_value', 'node_error', 'unauthenticated_hook', 'self_loop_needs_initial', 'missing_source', 'node_unhealthy', 'ignored_device', 'unknown_device', 'device_port'],
|
||||
enum: ['cycle', 'unconnected_input', 'missing_initial_value', 'node_error', 'unauthenticated_hook', 'self_loop_needs_initial', 'missing_source', 'node_unhealthy', 'ignored_worker', 'unknown_device', 'device_port'],
|
||||
title: 'Code'
|
||||
},
|
||||
message: {
|
||||
|
||||
Reference in New Issue
Block a user