Skip to main content
← Back to list
01Issue
FeatureOpenSwamp CLIPublic
AssigneesNone

Relationships

#5052 Docs: workflow step outputs of a resource too large to load (swamp-club#4962)

Opened by stack72 · 11/24/2026

swamp-club#4962 changes what happens when a workflow step writes a JSON resource too large to load: past 2^29-24 bytes (V8's maximum string length), or past the heap load guard.

What changed:

  • The step now succeeds. Before, a resource past the heap guard failed the step at step end, and one past the string limit silently produced empty outputs.
  • swamp prints a warning in the swamp data resource-size category naming the step, the item and its size.
  • Any expression that reads that step's steps..outputs, or the record through model..resource, fails with ResourceTooLargeToLoadError: Cannot load /@v: it is , more than swamp can load as text (or: and loading it would exhaust the memory left to this process). This covers a child workflow's outputs read through the parent step.
  • The whole outputs map of that step fails, not only the keys the large resource would have defined. The workaround is to read a smaller resource the step also writes with data.latest().
  • A delete method warns when a resource is too large to carry its last known state onto its deletion marker, and writes the marker without it.

Manual pages to update:

  • content/manual/reference/workflows.md: in the step outputs section, describe the behaviour above and the error.
  • content/manual/reference/data.md: the paragraph after the oversized-data query says a run fails with ResourceTooLargeToLoadError. Add that a workflow step writing such a resource succeeds with a warning, that the failure moves to the expression that reads it, and the text-length reason.
  • content/manual/reference/cel-expressions.md (optional): note that steps..outputs and model..resource can refuse a too-large record by name.
02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/24/2026, 4:17:34 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.