Lambda timeout doubles to 30 minutes: which long-running tasks to merge into a single function

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...
If you've ever split a twenty-minute transcoding job into three Lambdas strung together with Step Functions, you'll probably be interested in last week's change. In its November 24 Weekly Roundup, AWS announced that the timeout limit for on-demand Event Functions has increased from 15 minutes to 30 minutes (1,800 seconds), and that same week Lambda Managed Instances began supporting GPU instances. For backend and platform developers, some medium-length jobs that previously had to be split up can now fit into a single function. But the takeaway isn't "merge everything now": once functions get longer, the timeouts of other links in the call chain, and the cost shape of per-instance GPU billing, both become things you need to re-check.
First, get clear on the boundaries of this change, or it's easy to budget against the wrong number.
On standard on-demand Event Functions, all three invocation types—synchronous, asynchronous, and event source mappings—can be configured up to 30 minutes. On Lambda Managed Instances, only synchronous invocations increase to 30 minutes; asynchronous and event source mapping invocations keep the 90-minute limit that took effect in September.
In other words, under the same "30 minutes" headline there are actually two different cases. If you run asynchronous jobs on Managed Instances, the actual limit is 90 minutes, not 30; if you run synchronous jobs on Managed Instances, that's when you need to confirm you've configured 1,800 seconds. The first step in deciding whether a job can be merged isn't how long it runs, but how it's triggered and which kind of function it runs on.
Standard Lambda pricing applies to this timeout change, across all commercial regions.
This is the easiest pitfall to hit: raising a function's timeout doesn't mean the whole chain can wait 30 minutes.
In the caveats of its Compute blog post, AWS points out three independent clocks:
Take a hypothetical example: a function legitimately runs for 20 minutes, but spends 6 of those minutes waiting on an external callback, so the connection sits idle the whole time. After 350 seconds (about 5 minutes 50 seconds), the NAT gateway drops the connection, and the function may fail silently at the 6-minute mark—and what you see in the logs isn't "function timed out" but a connection error.
So the real prerequisite for merging orchestration is: every hop in the chain tolerates 30 minutes, and idle periods inside the function must actively keep the connection alive. Otherwise you've just swapped a "function timeout" failure for a "connection dropped mid-call" failure.
The use cases AWS names are: agentic requests that chain model calls and tool calls, media transcoding, and file conversion.
These kinds of work all happen to have external side effects: a tool call may have charged a payment, a transcode may have written an output object, a conversion may have sent a notification. A function that runs for 29 minutes, fails, and is then retried will re-run all the earlier steps. The longer the runtime, the bigger the window for retries to duplicate side effects.
The source text doesn't describe Lambda's retry semantics in detail, so don't assume specific retry counts or default behavior. But one thing is certain: once these long jobs AWS names are merged into a single function, you need to ensure yourself that repeated execution doesn't cause extra consequences. If your job contains steps that can't tolerate repeated execution, keeping an orchestrator that can track state is still the safer choice.
GPU support appears only on Lambda Managed Instances, not on standard on-demand functions. Functions are packaged as OCI container images, so you don't need to align GPU drivers, CUDA versions, or AMIs yourself.
There's a key detail in the official demo: four concurrent requests share a single copy of the model on the same GPU, and finish in about the same time as a single request. This is exactly why GPU functions can be economical—by packing concurrent requests onto one GPU.
Billing also differs from standard Lambda, made up of three parts:
In other words, cost grows with instance-hours, not just with the number of invocations. A GPU function kept warm for long periods looks more on the bill like an EC2 instance you leave running all the time. Workloads with sparse traffic and low concurrency are likely paying for idle GPU time.
This capability targets G-series instances (G4dn through G6e), and is officially positioned for inference optimization of custom models.
The source text explicitly keeps the longer option on the table: durable functions can run for up to a year, and now emit OpenTelemetry traces.
This is the honest boundary of the 30-minute change—it isn't a new ceiling for long jobs, but a higher ceiling for a single Event Function. Jobs that need to run for hours or even days, or that need to preserve durable state across failures, should still go to durable functions or an orchestrator.
Also, the source text gives no cold-start benchmark data for long functions. This should be measured, not assumed.
Below is a review process to run in order; each step says what to look at, what you expect to see, and what to do if it doesn't match.
This approach isn't right for every case. In the following situations, keeping your existing orchestration is the safer choice:
Treating 30 minutes as "the new limit for long tasks" is a misreading. It merely gives some medium-length tasks that were previously forced to be split up room to be merged. The real basis for the decision is still: invocation method, pipeline timeouts, the consequences of repeated execution, and the cost shape—not the number in the headline.