Report a published node that has no code of its own
The store answers the new-node template when nothing was ever written for a
node, so such a node ran — returning {} on every call, reporting active and
ok, and saying nothing anywhere. Unreachable through `fluksio sync`, which
writes every body before it publishes; the editor end was open.
A run of a flow holding one is now refused, and the flow carries a
missing_source issue so it is visible before anybody runs it. A draft is
exempt: a node being written legitimately has no published body yet.
The generated client is regenerated for the new issue code, which also
catches up the drift left by earlier backend work (resources, code_digest,
idempotency_key).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1662,6 +1662,17 @@ export const NodeDef_InputSchema = {
|
||||
title: 'Cache',
|
||||
description: 'Whether a batch run may reuse an earlier execution of this node with the same source, settings and inputs. Turn it off for a function whose answer can change on its own.',
|
||||
default: true
|
||||
},
|
||||
resources: {
|
||||
anyOf: [
|
||||
{
|
||||
'$ref': '#/components/schemas/Resources'
|
||||
},
|
||||
{
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
description: "What one execution of this node holds while it runs. Absent — the default — means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy."
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
@@ -1757,6 +1768,17 @@ export const NodeDef_OutputSchema = {
|
||||
title: 'Cache',
|
||||
description: 'Whether a batch run may reuse an earlier execution of this node with the same source, settings and inputs. Turn it off for a function whose answer can change on its own.',
|
||||
default: true
|
||||
},
|
||||
resources: {
|
||||
anyOf: [
|
||||
{
|
||||
'$ref': '#/components/schemas/Resources'
|
||||
},
|
||||
{
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
description: "What one execution of this node holds while it runs. Absent — the default — means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy."
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
@@ -1774,6 +1796,11 @@ export const NodeSourceSchema = {
|
||||
code: {
|
||||
type: 'string',
|
||||
title: 'Code'
|
||||
},
|
||||
missing: {
|
||||
type: 'boolean',
|
||||
title: 'Missing',
|
||||
default: false
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
@@ -2330,6 +2357,49 @@ export const RemoteUserBodySchema = {
|
||||
title: 'RemoteUserBody'
|
||||
} as const;
|
||||
|
||||
export const ResourcesSchema = {
|
||||
properties: {
|
||||
cpus: {
|
||||
type: 'integer',
|
||||
minimum: 1,
|
||||
title: 'Cpus',
|
||||
description: 'Cores held for the whole execution. Also what the thread-pool variables are set to, so a library sizing itself to the machine sizes itself to this instead.',
|
||||
default: 1
|
||||
},
|
||||
gpus: {
|
||||
type: 'integer',
|
||||
minimum: 0,
|
||||
title: 'Gpus',
|
||||
description: 'Whole devices held for the whole execution, named to the node through CUDA_VISIBLE_DEVICES. Nothing else is given them while it runs, which is what keeps two preallocating processes apart.',
|
||||
default: 0
|
||||
},
|
||||
env: {
|
||||
additionalProperties: {
|
||||
type: 'string'
|
||||
},
|
||||
type: 'object',
|
||||
title: 'Env',
|
||||
description: "Extra environment for the worker this node runs in, applied over what the allocation derives. Where a library's own tuning goes — XLA_FLAGS, XLA_PYTHON_CLIENT_MEM_FRACTION — since those are composed strings the engine must not invent."
|
||||
}
|
||||
},
|
||||
additionalProperties: false,
|
||||
type: 'object',
|
||||
title: 'Resources',
|
||||
description: `What one execution of a node needs to have to itself.
|
||||
|
||||
Declaring nothing is the default and means what it always did: the node
|
||||
runs on the shared worker pool and nothing is accounted for it. That is
|
||||
right for the kind of node most flows are made of — a poll, a threshold, a
|
||||
message on its way somewhere.
|
||||
|
||||
It is wrong for the other kind. A numerical library sizes its thread pool
|
||||
to every core it can see, so a handful of them at once oversubscribe the
|
||||
machine badly enough to starve the engine's own event loop, and a GPU
|
||||
library that preallocates most of the card deadlocks when a second one
|
||||
arrives. Both are a node saying how much of the machine it takes, which is
|
||||
what this is.`
|
||||
} as const;
|
||||
|
||||
export const RuleSchema = {
|
||||
properties: {
|
||||
events: {
|
||||
@@ -2390,6 +2460,18 @@ export const RunCreateSchema = {
|
||||
enum: ['api', 'cli', 'sdk'],
|
||||
title: 'Cause',
|
||||
default: 'api'
|
||||
},
|
||||
idempotency_key: {
|
||||
anyOf: [
|
||||
{
|
||||
type: 'string',
|
||||
maxLength: 64
|
||||
},
|
||||
{
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
title: 'Idempotency Key'
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
@@ -2432,6 +2514,11 @@ export const RunDetailSchema = {
|
||||
title: 'Origin Commit',
|
||||
default: ''
|
||||
},
|
||||
code_digest: {
|
||||
type: 'string',
|
||||
title: 'Code Digest',
|
||||
default: ''
|
||||
},
|
||||
commit: {
|
||||
type: 'string',
|
||||
title: 'Commit',
|
||||
@@ -2765,6 +2852,18 @@ export const SweepEntrySchema = {
|
||||
}
|
||||
],
|
||||
title: 'Seed'
|
||||
},
|
||||
idempotency_key: {
|
||||
anyOf: [
|
||||
{
|
||||
type: 'string',
|
||||
maxLength: 64
|
||||
},
|
||||
{
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
title: 'Idempotency Key'
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
@@ -3139,7 +3238,7 @@ export const ValidationIssueSchema = {
|
||||
properties: {
|
||||
code: {
|
||||
type: 'string',
|
||||
enum: ['cycle', 'unconnected_input', 'missing_initial_value', 'node_error', 'unauthenticated_hook', 'self_loop_needs_initial'],
|
||||
enum: ['cycle', 'unconnected_input', 'missing_initial_value', 'node_error', 'unauthenticated_hook', 'self_loop_needs_initial', 'missing_source'],
|
||||
title: 'Code'
|
||||
},
|
||||
message: {
|
||||
@@ -3526,6 +3625,11 @@ export const fluksio__api__routes__runs__RunRowSchema = {
|
||||
title: 'Origin Commit',
|
||||
default: ''
|
||||
},
|
||||
code_digest: {
|
||||
type: 'string',
|
||||
title: 'Code Digest',
|
||||
default: ''
|
||||
},
|
||||
commit: {
|
||||
type: 'string',
|
||||
title: 'Commit',
|
||||
|
||||
Reference in New Issue
Block a user