Haystack MCPTool 30-second timeout vs Sume jobs_wait holds
Haystack's MCPTool times out tool calls at 30 seconds; Sume's jobs_wait holds 50 to 55. Raise invocation_timeout or wait in shorter slices.

Haystack's MCPTool defaults to 30 seconds for connection_timeout and 30 seconds for invocation_timeout, per its integration reference. Sume's jobs_wait holds one call open for 50 seconds when you omit timeout_seconds and for at most 55. With defaults on both sides, a wait on an unfinished job outlasts Haystack's invocation limit.
Pick one fix: set invocation_timeout above 55 (60 is a safe value), or call jobs_wait with timeout_seconds of 25 or less and loop. Both facts were read on 2026-10-06; Sume's side is on Jobs and results.
Which fix is better?
Raising the limit is simpler. Shortening the wait suits a pipeline that has its own time budget per step.
| Option | Setting | Effect |
|---|---|---|
| Raise Haystack | invocation_timeout=60 | One call can hold a full 55-second slice |
| Shorten Sume wait | timeout_seconds of 25 | Each call returns before 30 seconds; you loop more |
| Do nothing | Both defaults | A wait with a still-running job can time out in Haystack |
What happens when the wait ends early?
A timeout on the client side does not cancel the job. It keeps running and keeps billing, per Sume's docs. Keep the job id, call jobs_wait again with the same ids when the answer is wait_slice_expired, and never submit the paid create again. If you must retry a create, reuse its idempotency_key.
One wait for a whole fan-out
After parallel creates, jobs_wait takes job_ids (1 to 20) with wait_for of all (default) or any, and include_results: true returns each completed job's result in the same answer. That is one tool call, so one Haystack invocation timeout, for a whole wave.
Sources
Related posts
More in Developers
- Heroku H12 at 30 seconds: call Sume async, not sync
Heroku's router ends a request at 30 s (H12). Sume sync mode waits up to 30 s too. Submit async, return 202 to the browser, then poll or take a webhook.
- Does Sume hosted MCP match the HTTP API? Where parity stops
Not fully. Hosted MCP covers most generation families, but Image 1.0 and Video 1.0 are REST-only, and schedules have no MCP tool. Use the HTTP API for those.
- How long can an AI video Format run take? 90-minute limit
A Sume Format run expires 90 minutes after creation, sooner if silent. How to poll with backoff, when to use a webhook, and what expired means.
- How many 30-second videos can a Sume Pro key run at once? Wave math
Pro runs 4 generations at once and queues 20 more, so 24 accepted jobs. Use the plan table and a Python function to plan a 50-clip batch in waves.
Written by Sume