Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublicTeam
AssigneesNone

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:9090

Observed:

main │ step collect · ... · start
main │ queued, waiting for worker matching target ''
... 10m later ...
system │ Failed workflow empty-target in 10m0s

Expected

One of:

  1. 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.
  2. 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.
  3. Reject at validation: target resolving to '' is a workflow/definition error the moment inputs are bound (workflow validate cannot know it, but run can).

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 (guard truthy == 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.

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.

02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/23/2026, 12:49:54 AM

No activity in this phase yet.

03Sludge Pulse
svendowideit moved this from a private collective to public11/25/2026, 1:21:45 AM

Sign in to post a ripple.