Trigger AI agents, batch jobs, and migrations the moment you need them. Each spins up in its own container, connects to your services and data, runs its job, and shuts down.

Bursty work usually sits in an always-on worker you pay for around the clock. A task does the same work but exists only while it runs, billed per second.
Migrations and data fixes often live in a runbook or someone's memory of what they ran. Task containers make that work a defined, repeatable part of your config.
Every task runs in the same isolated containers as your apps and uses short-lived, scoped tokens, so there are no long-lived credentials to store.
An app or a worker stays up, and a cron runs on a clock. When you need a job to run once and stop, a task is the fit: triggered, runs, gone.
A heavy job inside your web container can eat its memory and slow your site. A task runs on its own resources, so your site keeps serving traffic.
Leaving a worker running for an occasional event means paying it to wait. A task starts when triggered and bills per second, so it costs nothing between runs.
Reindexing, cleanup, and one-off fixes don't need a process running around the clock. A task runs the job on demand and exits, and you can design it to be safely re-run.
An agent runs model-generated commands, so it needs limits. A task is scoped to one command and only the services you link, with bubblewrap available for tighter isolation.
An app or another task triggers a task with a short-lived, scoped token requested at runtime. Nothing long-lived is saved, nothing to rotate.
A code review agent on every pull request, a cleanup agent that prunes stale branches, a performance agent that reports after each deploy; each spins up, runs, and exits.
A CSV import when a user uploads a file, a data export on request, a search reindex after a schema change. Work that used to sit in a polling worker now runs only when it's needed.
Deploy new code, run a one-off task against the new environment, then continue. That step lives in your project config, not in someone's memory of what they ran by hand.