Relationships
#5004 Placement that resolves to an empty string queues for the full queueTimeout instead of clearing placement
Opened by svendowideit · 11/23/2026
Summary
A placement field that evaluates to the empty string does not mean "no placement". It is treated as a selector that matches nothing, so the step is queued for the full queue timeout and then fails, with no indication that the value was empty rather than wrong.
labels: {} is documented to clear inherited placement and run locally. An
empty target (the same intent, expressed through an input default) does the
opposite of clearing: it stalls the run.
Reproduction
Two-node fleet: one orchestrator (swamp serve) plus one enrolled worker
(worker-a).
name: empty-target
inputs:
properties:
worker:
type: string
default: ''
jobs:
- name: main
target: ${{ inputs.worker }}
affinity: true
steps:
- name: collect
task:
type: model_method
modelType: '<any installed type>'
modelName: '<any model>'
methodName: '<any method>'# with a name: works
swamp workflow run empty-target --server http://127.0.0.1:9090 --input worker=worker-a
# with the default (empty): stalls
swamp workflow run empty-target --server http://127.0.0.1:9090Observed:
main │ step collect · ... · start
main │ queued, waiting for worker matching target ''
... 10m later ...
system │ Failed workflow empty-target in 10m0sExpected
One of:
- Empty target clears placement (preferred), exactly as
labels: {}does — so a single workflow can default to local and be pointed at a worker with one input. This is the natural way to write a portable extension workflow, and it currently does not work. - Fail fast at submission with a placement-resolution error: "no worker named '' — pass a worker name or remove the target". A typo and an empty default should not look the same as an unreachable worker.
- Reject at validation:
targetresolving to''is a workflow/definition error the moment inputs are bound (workflow validatecannot know it, butruncan).
Why it matters
This is the first thing anyone hits when they try to make a workflow work both locally and on a worker with one artifact. The workaround is a guarded two-job launcher, which:
- duplicates the job and nests the real body,
- depends on inverted guard semantics (
guardtruthy == skip), and - fails silently rather than loudly if both guards end up false — the run "succeeds" having executed nothing.
Ten minutes of queued, waiting for worker matching target '' reads like a
busy-worker condition, not like a mistake in the caller's input.
Related
The empty value is not the only way to reach the same trap: workflow-level
labels: {host: ${{ inputs.worker }}} has identical behaviour when the input is
empty. Whatever fix is chosen should apply to every placement field
(target, labels, platform) consistently, and should be stated in
references/workflow/references/remote-execution.md next to the existing
labels: {} sentence.
Open
No activity in this phase yet.
Sign in to post a ripple.