The best AI agent orchestration platforms, compared by kind
The main AI agent orchestration platforms come in four kinds: durable application runtimes like Trigger.dev, Temporal, Inngest and Restate, job queues like BullMQ, data orchestrators like Airflow, Prefect and Dagster, and agent frameworks like LangGraph, Mastra and the OpenAI Agents SDK. An agent that runs for 20 minutes, fans out to 50 tool calls and then waits a day for a human needs something to keep it alive. That's orchestration.
A job queue, a durable application runtime, a data orchestrator and an agent framework all call themselves "orchestration", but they solve different problems. If you pick the wrong kind, you end up building the missing half yourself. Trigger.dev is the open source platform for durable AI agents and workflows in TypeScript (a durable application runtime, in the terms below), and this page explains where it fits and where the other three kinds fit better.
Trigger.dev publishes this page, and we've listed our own limits next to everyone else's.
TL;DR
- AI agent orchestration platforms come in four kinds. Job queues (BullMQ) run short jobs on workers you operate. Durable application runtimes (Trigger.dev, Temporal, Inngest, Restate) keep long, multi-step application code running through crashes, retries and waits. Data orchestrators (Airflow, Prefect, Dagster) schedule Python data pipelines. Agent frameworks (LangGraph, Mastra, the OpenAI Agents SDK, etc.) decide what the agent does next.
- Most agent frameworks run on a runtime rather than replacing one. The OpenAI Agents SDK docs list Temporal, Restate, DBOS and Dapr integrations for runs that span long waits, retries or restarts, and Mastra documents Inngest and Temporal integrations for the same reason. LangGraph is the exception: it has its own checkpointing and its own runtime, LangSmith Agent Server.
- For TypeScript AI agents, pick a durable runtime that also runs the compute. Trigger.dev runs your tasks on its machines, with retries, queues and concurrency limits, fan-out with
batchTriggerAndWait, and human approval tokens. There's no platform timeout: amaxDurationyou set caps compute time per attempt, and time spent waiting on child runs isn't billed. - Temporal is the better fit for polyglot teams that want deterministic replay of every step (8 SDK languages, workers you run). Inngest fits event-driven functions that stay on your own serverless host or workers. Restate fits durable handlers inside existing services in 7 languages.
- For data pipelines and general workflow orchestration, Airflow, Prefect or Dagster fit better. They're Python-first, built around scheduled pipelines and assets, and both Airflow and Prefect now have human-in-the-loop steps.
What does "AI agent orchestration" mean? Four kinds of tools
"Agent orchestration" means two different things. One is the reasoning loop: which tool to call, which sub-agent gets the task, when to stop. The other is execution: keeping that loop running for an hour, retrying a failed step without repeating a payment, and waiting a week for an approval without paying for a machine. This page is about the second one.
| Kind | What it orchestrates | Unit of durability | Examples |
|---|---|---|---|
| Job queue | Short background jobs pushed by your app | The job (retried from the start) | BullMQ |
| Durable application runtime | Long, multi-step application code, including AI agents | The run, the step or the journal, depending on the product | Trigger.dev, Temporal, Inngest, Restate |
| Data orchestrator | Scheduled data pipelines, DAGs and assets | The task or asset | Airflow, Prefect, Dagster |
| Agent development framework | The agent's reasoning: prompts, tools, handoffs, graphs | Framework checkpoints if you add a store; none by default in the Vercel AI SDK | LangGraph, Mastra, OpenAI Agents SDK, Vercel AI SDK, etc. |
The layers stack. A Mastra agent or an AI SDK tool loop runs inside a Trigger.dev task, a Temporal activity, an Inngest step or a Restate handler. The framework decides what to do; the runtime makes sure it actually finishes. Our comparison of agent frameworks covers the framework layer in detail, so this page focuses on the runtime choice.
An example fan-out research agent with retries and failure recovery
This Trigger.dev task takes a question and a list of URLs, fans out one child run per URL to summarize it with an LLM, waits for all of them, and writes an answer from the summaries. It shows the 3 things you need from orchestration: fan-out, retries and recovery when part of the work fails.
Setup assumptions: a project created with npx trigger.dev@latest init, @trigger.dev/sdk 4.7 or later (for the concurrency option), a maxDuration default in trigger.config.ts, and ai and @ai-sdk/anthropic installed.
// trigger/research-agent.ts
import { task, logger, idempotencyKeys, AbortTaskRunError } from "@trigger.dev/sdk";
import { generateText } from "ai";
import { anthropic } from "@ai-sdk/anthropic";
const model = anthropic("claude-sonnet-5-5");
// One child run per source. Each has its own attempts, logs and machine.
export const summarizeSource = task({
id: "summarize-source",
concurrency: { total: 10 }, // at most 10 run at once, across every parent
maxDuration: 300, // compute seconds per attempt; Trigger.dev waits don't count
retry: {
maxAttempts: 4,
factor: 2,
minTimeoutInMs: 2_000,
maxTimeoutInMs: 60_000,
randomize: true,
},
run: async (payload: { url: string; question: string }) => {
const res = await fetch(payload.url);
// A missing page won't appear on retry, so fail this child now.
if (res.status === 404) throw new AbortTaskRunError(`Not found: ${payload.url}`);
// 429s, 5xx and network errors throw and retry with backoff.
if (!res.ok) throw new Error(`Fetch failed with ${res.status}: ${payload.url}`);
const page = (await res.text()).slice(0, 50_000);
const { text } = await generateText({
model,
prompt: `Question: ${payload.question}\n\nSummarize what this page says that helps answer it:\n\n${page}`,
});
return { url: payload.url, summary: text };
},
});
export const researchAgent = task({
id: "research-agent",
maxDuration: 600,
retry: { maxAttempts: 3 },
run: async (payload: { question: string; urls: string[] }) => {
// Keys are scoped to this run, so a parent retry reuses children that
// already succeeded and only re-runs the ones that failed.
const items = await Promise.all(
payload.urls.map(async (url) => ({
payload: { url, question: payload.question },
options: { idempotencyKey: await idempotencyKeys.create(url) },
}))
);
// Fan out and wait. The parent is checkpointed while the children run.
const { runs } = await summarizeSource.batchTriggerAndWait(items);
const summaries = runs.flatMap((run) => (run.ok ? [run.output] : []));
const failed = runs.filter((run) => !run.ok);
if (failed.length > 0) {
logger.warn("Some sources failed", { failedRunIds: failed.map((run) => run.id) });
}
// Not enough to answer from: throw, and the parent retries.
if (summaries.length < Math.ceil(payload.urls.length / 2)) {
throw new Error(`Only ${summaries.length} of ${payload.urls.length} sources succeeded`);
}
const { text } = await generateText({
model,
prompt: `Answer the question from these source summaries and cite the URLs.\n\nQuestion: ${payload.question}\n\n${summaries
.map((s) => `${s.url}\n${s.summary}`)
.join("\n\n")}`,
});
return { answer: text, sources: summaries.map((s) => s.url), failedSources: failed.length };
},
// Called once, after the last attempt has failed. Not called when the run
// hits maxDuration, crashes (OOM) or is canceled.
onFailure: async ({ payload, error }) => {
logger.error("Research failed", { question: payload.question, error });
},
});
Trigger it from your backend with tasks.trigger<typeof researchAgent>("research-agent", { question, urls }), or from another task with researchAgent.triggerAndWait(...).
What happens when something fails
| Failure | What Trigger.dev does |
|---|---|
| A source returns 429 or 500 | That child throws and retries with exponential backoff and jitter, up to 4 attempts. The other children keep going. |
| A source returns 404 | AbortTaskRunError fails the attempt and disables retrying, so that child fails without retries. The parent sees ok: false for it. |
| More than half the children fail | The parent throws and starts attempt 2. The run-scoped idempotency keys return the children that already succeeded, and only the failed ones run again. |
| The parent runs out of memory | The run ends as Crashed and isn't retried, unless you set retry.outOfMemory.machine to retry it on a larger machine. That retry runs run() from the top, and completed children are reused through their idempotency keys, so the model calls aren't paid for twice. |
| You deploy while the run is going | The run stays locked to the version it started on, and batchTriggerAndWait locks its children to that version too. |
| Every attempt fails | onFailure runs once, after the last attempt. It doesn't run when the run hits maxDuration, and not for crashes or cancels either, so watch run status for those. |
Two details matter here. First, a Trigger.dev retry runs run() again from the top. There's no step-level replay, so the child task is the unit you get to skip, and anything with side effects (a payment, an email) needs an idempotency key on the provider's API as well. Second, a batch takes up to 1,000 items, and the docs say to pass every item in one batchTriggerAndWait call rather than calling it in parallel with Promise.all().
Waiting on child tasks doesn't count toward compute, so a parent that waits 20 minutes for 50 children is billed for its own work, not the wait.
What's the difference between runtime durability and agent reasoning?
Durability is about surviving. A worker gets OOM-killed 40 minutes into a run. A deploy rolls out while 200 runs are mid-flight. An API hangs. An approval sits in someone's inbox over a weekend. Something has to remember where the run got to, retry the right part, and avoid doing a side effect twice.
Reasoning is about deciding. Which tool to call, what to put in the prompt, when the agent is done. That's the job of LangGraph, Mastra, the OpenAI Agents SDK or the Vercel AI SDK, whose docs describe an agent as an LLM that uses tools in a loop.
The framework docs draw the same line:
- OpenAI Agents SDK. The running agents docs list durable execution integrations with Dapr, Temporal, Restate and DBOS "for durable orchestration when runs may span long waits, retries, or process restarts".
- Mastra. By default its workers run in the API process and don't survive process crashes. For crash-safe workflows it documents Inngest and Temporal integrations, and its own durable agents (in beta) can continue from a checkpoint after a restart.
- LangGraph. Fault tolerance comes from a checkpointer backed by a database you provide. The docs list Postgres, MongoDB and Azure Cosmos DB for production and SQLite for local work. LangSmith's Agent Server is a runtime with that persistence and a task queue built in.
So "agent orchestration framework" and "agent orchestration platform" are two layers. Pick a framework for how you want to write the agent. Then pick a runtime for how its runs survive, where the compute lives and who operates it. Trigger.dev has examples of running the OpenAI Agents SDK and Mastra inside tasks.
Which orchestration platform for which use case
| Use case | Kind | Good choices |
|---|---|---|
| Send emails, resize images, call webhooks from a Node app that already runs Redis | Job queue | BullMQ |
| TypeScript AI agent that runs for minutes or hours, calls tools and fans out | Durable runtime with managed compute | Trigger.dev |
| Agent that waits hours or days for a human approval | Durable runtime | Trigger.dev (wait tokens), Temporal (Signals and Updates), Inngest (step.waitForEvent, step.waitForSignal), Restate |
| Chat agent with streaming UI, tool approvals and long sessions | Durable runtime | Trigger.dev (chat.agent) |
| Long-lived business workflows across Go, Java, Python and .NET services | Durable runtime with replay | Temporal |
| Event-driven functions that stay on your own serverless host or workers | Durable runtime, serverless | Inngest |
| Durable handlers and stateful services inside existing microservices | Durable runtime, journal-based | Restate |
| Nightly ETL, dbt runs and warehouse pipelines in Python | Data orchestrator | Airflow, Prefect, Dagster |
| Batch LLM enrichment of a warehouse table, owned by a Python data team | Data orchestrator | Prefect, or Airflow with the common.ai agent operator |
| Data platform built around assets and lineage | Data orchestrator | Dagster |
| Designing the agent's tools, handoffs or graph | Agent framework, on one of the runtimes above | LangGraph, Mastra, OpenAI Agents SDK, Vercel AI SDK, etc. |
| Cron jobs in TypeScript | Durable runtime or job queue | Trigger.dev schedules.task, BullMQ job schedulers |
Most AI products end up with two layers from this table: a framework for the agent and a runtime underneath it. Data teams often have a third, a data orchestrator, that feeds the agent its data. These don't compete with each other.
AI agent orchestration platforms compared
Every cell is backed by the sections below.
| Platform | Execution model | Language | Where your code runs | Timeouts | Durability model | Human-in-the-loop | Self-hosting and license | Pricing model |
|---|---|---|---|---|---|---|---|---|
| BullMQ | Job queue on Redis or Postgres | TypeScript/JS (Node, Bun), Python, Go, Elixir, Rust, .NET; PHP producer only | Your workers, your Redis or Postgres | No built-in job timeout; stalled-job checks catch dead workers | Job retried from the start; save progress in job data yourself | No primitive; delayed jobs and child jobs | Self-hosted library, MIT; Pro is commercial | Free; you pay for the datastore and workers; Pro per organization |
| Trigger.dev | Tasks with child tasks, queues and waits | TypeScript (Python scripts via a build extension) | Trigger.dev's machines, compute included | No maximum run duration; maxDuration caps compute time | Run-level retries, checkpointed waits, idempotency keys | Wait tokens, chat.agent tool approvals, Slack and Linear buttons | Apache 2.0; self-hosted has no checkpoints | Per second of compute by machine size plus a per-run fee; free tier with a monthly usage credit |
| Temporal | Deterministic workflows that replay event history; activities do the work | Go, Java, Python, TypeScript, .NET, Ruby, PHP, Rust | Your workers; Temporal Cloud or self-hosted service | Workflow timeouts default to infinite; 51,200 events or 50 MB of history, reset with Continue-As-New | Event history replay | Signals and Updates | MIT | Temporal Cloud bills Actions and storage; your workers are extra |
| Inngest | Event-driven functions with memoized steps | TypeScript, Python, Go | Your app or serverless host (Serve), or persistent workers (Connect) | Steps up to 2 hours (or your host's limit); runs up to 30 to 366 days by plan | Step memoization; handler replayed with saved results | step.waitForEvent or step.waitForSignal, with a timeout | Server SSPL, Apache 2.0 after 3 years; SDK packages Apache 2.0 | Per execution, each step counts; free tier 50,000 a month; your compute is extra |
| Restate | Durable handlers with a journal | TypeScript, Java, Kotlin, Python, Go, Rust, Ruby | Your services (containers, Kubernetes, AWS Lambda); Restate server | Handlers suspend while waiting, including on Lambda | Journal replay, skipping completed steps | Durable waits for human decisions | Server BSL 1.1, Apache 2.0 after 4 years; SDKs MIT | Restate Cloud bills durable actions; free tier 100,000 a month; your compute is extra |
| Airflow | Scheduler runs DAGs of tasks | Python (Go and Java tasks since 3.3; experimental TypeScript, Go and Java Dag SDKs in 3.4) | Executors on your infra, or Astro, MWAA, Cloud Composer | No task timeout by default | Task-level retries (0 by default) | HITL operators since 3.1 | Apache 2.0 | Free; managed Astro is usage-based |
| Prefect | Python flows and tasks | Python | Workers on your infra, or Prefect Managed | Optional timeout_seconds | Task and flow retries | pause_flow_run / suspend_flow_run with wait_for_input | Apache 2.0 | Free to self-host; Cloud has a free tier, a flat-priced Starter tier and a per-seat Team tier |
| Dagster | Asset-based pipelines | Python | Your environment (Hybrid) or Dagster's (Serverless) | Opt-in run timeouts | Op and asset RetryPolicy | None documented | Apache 2.0 | Dagster+ credits per asset materialization or op |
Read the durability column carefully, because it's where the products differ most. Temporal, Inngest and Restate replay your code and skip work that already finished, so completed steps don't run again after a restart. In exchange, Temporal asks for deterministic workflow code, and Inngest and Restate ask you to wrap side effects in steps. Trigger.dev keeps your code as plain async TypeScript and retries the whole run, and you choose what to skip on retry by making it a child task or giving it an idempotency key.
The "where your code runs" column is the other big split. Trigger.dev is the only durable runtime here that runs your code on its own machines as part of the product. Temporal, Inngest and Restate orchestrate code that runs on infrastructure you provide, whether that's workers, containers or serverless functions. Inngest's hosted Sandboxes run generated code in microVMs, but your functions still run on your own host. That's a real advantage if you already have that infrastructure and a cost if you don't.
BullMQ for job queues
BullMQ is a distributed job and message queue, with SDKs for TypeScript and JavaScript (Node.js and Bun), Python, Go, Elixir, Rust and .NET, and a producer-only PHP client. It's MIT licensed and runs on Redis or, with its PostgreSQL backend, on Postgres.
You add a job with an attempts count and a fixed or exponential backoff. If a worker crashes, the job stalls and goes back to the waiting list, and after maxStalledCount stalls (1 by default) it fails permanently. Flows give you parent and child jobs, where by default the parent waits until all its children have succeeded. For multi-step jobs, the step jobs pattern saves the next step in the job's data with job.updateData so a retry resumes at the right step, and moveToDelayed pauses a job for later. BullMQ Pro adds groups with per-group rate limits and concurrency, licensed per organization.
Best fit: short, independent background jobs in a Node app that already runs Redis or Postgres, where you want a library and no platform fee.
Limits: you run the datastore and the workers, and long waits or multi-step agents mean writing the step tracking yourself. Our BullMQ comparison goes deeper.
Durable application runtimes
Trigger.dev
Trigger.dev runs TypeScript tasks on machines we operate, with retries, queues, concurrency limits, schedules, checkpointed waits and a run dashboard. It's Apache 2.0.
Runs have no maximum duration. You set a default maxDuration in trigger.config.ts, which caps compute time, and you can override it per task or per run, or set timeout.None. Time spent in wait.for, triggerAndWait and batchTriggerAndWait doesn't count. Waitpoint tokens pause a run until a human or another system completes them, with an optional timeout. chat.agent runs each conversation as a single long-lived task, with tool approvals built in, and since 4.8.0 the same approvals work as Slack and Linear buttons. Concurrency is set per task with the concurrency option, with per-tenant keys and named limits shared across tasks.
Trigger.dev pricing is per second of compute by machine size plus a small per-run fee. The free tier includes a monthly usage credit, and the paid plans add a larger credit and higher concurrency. Time spent waiting on child runs, or in a wait.for longer than 5 seconds, isn't billed.
Best fit: TypeScript teams building AI agents and background jobs that run longer than a request, fan out, or wait on humans, and who don't want to run workers.
Limits: tasks are TypeScript only; Python runs as scripts through the Python build extension, with no Python SDK. Retries restart run() from the top, so there's no step memoization or deterministic replay, and side effects need idempotency keys. Self-hosted Trigger.dev doesn't checkpoint, autoscale or warm-start, so long waits hold a machine there. And a single batch is capped at 1,000 items.
Temporal
Temporal splits code into workflows and activities. Workflow code must be deterministic, because Temporal replays it against the recorded event history; activities run outside the replay path and are retried automatically. There are official SDKs for Go, Java, Python, TypeScript, .NET, Ruby, PHP and Rust. The server is MIT licensed.
Workflow timeouts default to infinite, and Temporal recommends not setting them. A single execution's history is limited to 51,200 events or 50 MB, and long-running workflows use Continue-As-New to carry their state into a fresh history. Humans and other systems talk to running workflows through Signals and Updates. On Temporal Cloud, your workers stay in your environment and Temporal doesn't execute your code. Temporal Cloud pricing bills Actions (each Signal, timer and activity start or retry counts) and storage, pay-as-you-go with no base monthly fee, and new accounts get trial credits.
Best fit: polyglot teams and enterprises with long-lived business workflows across several languages, who want every step replayed exactly and already run their own compute.
Limits: you deploy and scale the workers, and workflow code follows determinism rules. Our Temporal comparison covers the trade-offs for TypeScript teams.
Inngest
Inngest runs event-driven functions made of steps and saves each step's result as a checkpoint. In TypeScript SDK v4, steps run back to back in the same request by default. When a step retries or the run resumes after a wait, Inngest replays the handler with the saved results of earlier steps (memoization), so completed work doesn't run again. Functions run on your own app or serverless host, or on persistent workers with Connect. Inngest has official SDKs for TypeScript, Python and Go.
Limits: 1,000 steps per function, steps up to 2 hours (or your host's shorter timeout), and runs of up to 30 days on Free, 90 on Pro and 366 on Business, including sleeps and waits. step.waitForEvent pauses a function until a matching event arrives or a timeout passes, which is how you wait for a human, and step.waitForSignal does the same for a signal sent to that run. The server is SSPL, with an Apache 2.0 grant 3 years after each release, and the published SDK packages are Apache 2.0. Inngest pricing counts executions, where each function run and each step counts: Free includes 50,000 a month, and Pro and Business are monthly plans with larger execution allowances.
Best fit: event-driven workflows that should stay on your existing serverless deployment or workers, with concurrency and event batching built in.
Limits: you provide the compute, and on a serverless host, long steps are bound by its timeout. Our Inngest comparison has more.
Restate
Restate records every step of a handler in a journal. When a handler fails, Restate replays the journal, skips completed steps and resumes where it stopped. Your services run in your own containers, VMs, Kubernetes pods or function platforms like AWS Lambda, and Restate suspends handlers while they wait so you don't pay for wait time. There are SDKs for TypeScript, Java, Kotlin, Python, Go, Rust and Ruby.
Restate's AI agents page lists a human approval pattern with durable waits and timeouts, and says it works with the Vercel AI SDK and OpenAI. The server is under the Business Source License 1.1, which converts to Apache 2.0 four years after each release, and the SDKs are MIT. You can self-host it, run it in your cloud account (BYOC) or use Restate Cloud, which bills durable actions and includes 100,000 a month free.
Best fit: teams adding durability to existing services in several languages, including stateful services and calls between them.
Limits: you run the services and their compute, and the server's BSL isn't an OSI-approved license.
Airflow, Prefect and Dagster for data pipelines
If you need workflow orchestration for data pipelines, these are the tools to look at, not Trigger.dev.
Apache Airflow defines workflows in Python and runs batch DAGs through a scheduler and executors. It's Apache 2.0. Airflow 3.1 added human-in-the-loop operators that pause a task and show a form in the Airflow UI. Airflow 3.3 added tasks in Go and Java, and Airflow 3.4 added experimental SDKs for writing whole Dags in TypeScript, Go or Java. The separate common.ai provider, which went GA alongside 3.4, adds an agent operator with tool-call approval. Dynamic task mapping fans out up to 1,024 mapped tasks by default. Managed options include Astronomer (usage-based), Amazon MWAA and Google Cloud Composer.
Prefect is a Python workflow framework (Apache 2.0) with decorated flows and tasks, retries, .map() and .submit() fan-out, and pause_flow_run or suspend_flow_run with wait_for_input for human input. Code runs on workers in your infrastructure or on Prefect Managed. Prefect Cloud has a free Hobby tier, a flat monthly Starter tier and a Team tier billed per user.
Dagster is asset-based: you describe the data assets that should exist and how to produce them. It's Python and Apache 2.0, with RetryPolicy on ops and assets and opt-in run timeouts. Dagster+ runs Hybrid in your environment or Serverless in theirs, and prices in credits per asset materialization or op. We didn't find a human-in-the-loop primitive in its docs.
Best fit: Python data teams running scheduled pipelines, warehouses and ML training, where lineage, backfills and schedules matter more than per-request latency. Airflow and Prefect both now handle approvals and agent steps inside a pipeline.
Where an application runtime fits better: work triggered by your product's users rather than a schedule, like an agent started from a chat message, a fan-out per signup or a webhook handler, written in TypeScript next to your app.
Which workflow orchestration tools handle distributed tasks?
All of them distribute work across machines, but in different ways:
- BullMQ distributes jobs across the workers you start, coordinated through Redis or Postgres.
- Trigger.dev distributes child runs across its own machines, up to your plan's concurrency, and caps any task with
concurrencylimits and per-tenant keys. - Temporal hands workflow and activity work to the workers you run.
- Inngest calls your endpoints in parallel, with concurrent steps capped by plan (5 on Free, 100 included on Pro).
- Restate invokes handlers on your service deployments and suspends them while they wait.
- Airflow, Prefect and Dagster hand tasks to executors or workers on your infrastructure, or to their managed tiers.
For job scheduling in distributed systems, look at three things: what happens to a job when its worker dies (BullMQ, for example, detects stalled jobs and requeues them), whether a retry can skip work that already finished (replay-based runtimes do it automatically; Trigger.dev does it with child tasks and idempotency keys; BullMQ with the step jobs pattern), and who runs the machines.
Trigger.dev's limits
We'd rather you pick the right tool than the wrong one, so here's where Trigger.dev isn't the answer:
- You need Python, Go or Java tasks. Trigger.dev tasks are TypeScript. Temporal and Restate have SDKs in all three, Inngest has Python and Go, and Prefect, Airflow and Dagster are Python-native (Airflow 3.3 and later also run Go and Java tasks).
- You want automatic step replay. Trigger.dev retries the run from the top. Temporal, Inngest and Restate skip completed steps for you.
- You must self-host and wait for days. Self-hosted Trigger.dev has no checkpoints, so a waiting run holds its machine.
- Your work is a scheduled data pipeline. Airflow, Prefect and Dagster have asset lineage, backfills and data-platform integrations that Trigger.dev doesn't.
- You want compute on your own serverless host or workers. Inngest and Restate orchestrate functions where they already run.
And where it's the right answer: TypeScript agents and background jobs that run for longer than a request, fan out to many child runs, wait on humans, and should run without any workers for you to operate.
FAQs
-
What are the best AI agent orchestration platforms? It depends which layer you mean. For running agents in production, the durable application runtimes are Trigger.dev (TypeScript, compute included), Temporal (8 languages, deterministic replay, your workers), Inngest (event-driven, on your serverless host) and Restate (journal-based, 7 languages). For writing the agent's logic, the frameworks include LangGraph, Mastra, the OpenAI Agents SDK and the Vercel AI SDK, which usually run on top of one of those runtimes (LangGraph also has its own, LangSmith Agent Server).
-
What's the difference between an AI agent orchestration framework and a platform? A framework like LangGraph or Mastra decides what the agent does: tools, prompts, handoffs, graphs. A platform or runtime like Trigger.dev, Temporal, Inngest or Restate keeps the agent's run alive through crashes, retries, deploys and long waits. You usually need both, and the OpenAI Agents SDK docs list durable runtime integrations for exactly that.
-
What are the best task orchestration platforms for AI workflows? For TypeScript AI workflows that run longer than a request, Trigger.dev runs the tasks on managed machines with retries, fan-out with
batchTriggerAndWaitand human approval tokens. For polyglot enterprises, Temporal. For serverless event-driven apps, Inngest. For Python data and ML pipelines that include LLM steps, Prefect or Airflow. -
What are the top workflow orchestration tools? For data pipelines: Apache Airflow, Prefect and Dagster. For application workflows and background jobs: Trigger.dev, Temporal, Inngest and Restate. For simple job queues: BullMQ. They overlap less than the shared word "workflow" suggests.
-
Is Airflow good for AI agents? For agent steps inside a scheduled Python data pipeline, yes: Airflow 3.1 added human-in-the-loop operators, and the common.ai provider adds an agent operator with tool approval. For agents started by your users in real time, an application runtime fits better, since Airflow is built around scheduled batch workflows.
-
Can BullMQ run AI agents? BullMQ can run an agent inside a job, with retries and backoff. You'd run Redis (or Postgres) and the workers, and you'd write the step tracking yourself (the step jobs pattern) so a retry doesn't repeat model and tool calls. Long human approvals have no built-in primitive.
-
Does Trigger.dev replay workflows like Temporal? No. Trigger.dev checkpoints the process during waits and restores it afterward, but a retry runs
run()from the top. You make work skippable on retry by putting it in a child task with an idempotency key. Temporal replays the event history and skips completed activities automatically, in exchange for deterministic workflow code. -
What's the maximum run time for an AI agent on Trigger.dev? There's no maximum. You set a default
maxDurationfor compute time intrigger.config.ts, override it per task or per run, or settimeout.None. It counts compute time per attempt, so time spent inwait.for,triggerAndWaitandbatchTriggerAndWaitdoesn't count toward it.