JobError
JobContext) is cancelled due to a worker error or timeout.
JobGroupError
JobGroupContext) is cancelled due to a worker error or timeout. Also raised if agents are not ready within the specified timeout.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Error types for job coordination
from pipecat.pipeline.job_context import JobError
JobContext) is cancelled due to a worker error or timeout.
try:
async with self.job("worker", payload=data, timeout=30) as j:
async for event in j:
...
print(j.response)
except JobError as e:
print(f"Job failed: {e}")
from pipecat.pipeline.job_context import JobGroupError
JobGroupContext) is cancelled due to a worker error or timeout. Also raised if agents are not ready within the specified timeout.
try:
async with self.job_group("w1", "w2", payload=data, timeout=30) as jg:
async for event in jg:
...
print(jg.responses)
except JobGroupError as e:
print(f"Job group failed: {e}")