fp::batch
Run several INDEPENDENT calls in one request and get every answer in place: { calls: [{ id?, function, payload?, namespace?, timeout_ms? }], concurrency?, stop_on_error?, timeout_ms? (default 10000 per call), max_entry_bytes? (default 16384), max_calls? (default 12; more only warns) } → { ok, results: [{ id, function, status: "ok", result, chars, truncated? } | { id, function, status: "error", code, message }], warnings }. Nothing is threaded between calls; for that use fp::pipe.
- callsobject[]required
Independent calls; results come back in this order.
- functionstringrequired
Function id to trigger.
- idstring
Echoed on the result; defaults to the call's position (`"0"`, `"1"`, …).
- namespacestring
Namespace of the target function (default: this worker's; say `default` for the engine's).
- payloadunknown
- timeout_msinteger· uint64min 0
Budget for this call alone.
- concurrencyinteger· uint32min 0
How many run at once (default: all).
- max_callsinteger· uint32min 0
Calls per request before a warning (default 12).
- max_entry_bytesinteger· uint64min 0
Largest serialized result kept per entry (default 16384); a bigger one is cut to this many bytes of its JSON text and marked `truncated`.
- stop_on_errorboolean
Run in order and stop after the first error (default false: every call runs and reports).
- timeout_msinteger· uint64min 0
Per-call budget when a call sets none (default 10000).
- okbooleanrequired
True when every call answered `ok`.
- resultsone of[]requiredone of (2)Variant 1
- charsinteger· uintrequiredmin 0
Size of the full result (chars of its string or serialized form).
- functionstringrequired
- idstringrequired
- resultunknownrequired
- statusstringrequiredenum ok
- truncatedbooleanrequired
Set when `result` is a cut of the JSON text, not the value.
Variant 2- codestringrequired
- functionstringrequired
- idstringrequired
- messagestringrequired
- statusstringrequiredenum error
- warningsstring[]required