Skip to main content
← Back to Currents

AWS Lambda's 90-Minute Timeout Won't Make Batch Jobs Safe

November 25, 2026

AWSCloud MigrationLegacy Modernization
A bigger hourglass sits beside a small one while water still leaks from a hole in a filling bucket, illustrating that a longer timeout doesn't fix an underlying leak

Here is the scenario. A nightly job on a legacy system takes 40 minutes, runs as a scheduled task on a server nobody wants to touch, and the migration plan says to move it to Lambda. Until September 2026, that plan died on a number: a Lambda function could run for 15 minutes and no longer.

On September 9, 2026, AWS announced a 90-minute timeout for some invocations on AWS Lambda Managed Instances. The AWS Compute Blog post says batch workloads can now use Lambda "without re-architecting their applications." For a legacy batch layer, that phrase is the risk, not the benefit. A long batch job belongs in the 90-minute window only if the team can say what a rerun does to the records it already wrote.

We have built and maintained ColdFusion systems since 1998, and the job that runs at 2 AM is a fixture of the legacy systems we inherit. The danger in those jobs was never the runtime. It was that nobody could say what state the job was in when it stopped.

What changes when Lambda allows 90 minutes

The 90-minute Lambda timeout applies to one capacity mode, Lambda Managed Instances, and to two invocation paths: asynchronous calls and event source mappings. Synchronous invocations keep the 15-minute maximum. The Init phase keeps its 15-minute limit too. With Lambda durable functions, each asynchronous invocation can now run for 90 minutes, and the durable execution around it can run for up to a year.

So the headline is narrower than it reads. One capacity mode, invoked two ways, can hold a single execution six times longer than it could before. Whether that helps depends on what the job does with the extra time.

The wall was doing the design work

The 15-minute limit, in place since 2018, forced a team to decide what a rerun does before a long job could move to Lambda. A 40-minute job could not move as it was, so the team had two choices. They split the job into steps, and in doing so learned which steps were safe to repeat. Or they moved it to a worker behind an orchestrator, and got durability as a side effect. Either way, someone had to write down what "halfway done" means.

Under the new limit, the job moves as it is, and its failure modes move with it. At minute 35 the host fails. The asynchronous retry runs the job again from the start. The first half of the writes already committed. That is the same 2 AM question every legacy batch layer carries, now on a managed platform with a better dashboard.

The announcement says this itself, in its best-practices section. Lambda "does not guarantee exactly-once processing," and a longer function widens the window for retries and duplicate deliveries. Idle timeouts on downstream databases and APIs must cover the full run, and traffic through a NAT gateway needs keep-alives. Temporary credentials must outlive the job or refresh inside it. An SQS queue needs a visibility timeout of at least six times the function timeout. The cron job never answered any of these. The longer window does not remove the questions. It moves them into production.

Which batch jobs should use the 90-minute window

Two kinds of job gain from the longer window: a bounded single step that is safe to repeat, and one long step inside a checkpointed run. Everything else needs a rerun story first.

A bounded, idempotent, single-step job. Idempotent means a second run leaves the data exactly as one run would. A 25-minute media transcode is one example. A report that reads once, computes, and writes once is another. The team split these jobs only because of the wall, so they get simpler, and the splitting code can go.

One long step inside a checkpointed run. When a multi-step job moves money or changes records, give the 90 minutes to one step. Durable functions record a checkpoint after each step. On replay, the code runs from the beginning and skips the completed steps, using their stored results. We use the same idea when we replace cron batch jobs with Rails and Temporal. In both, state lives outside the process, and a rerun skips what already happened.

A job with no rerun story stays where it is. A job that cannot say what a rerun does to its data does not need a longer timeout. It needs the re-architecture the old wall was asking for, and it needed that before AWS made the wall optional.

The one question to ask first

Ask one question of every job someone proposes for the new window: if this job dies at minute 35 and runs again, what happens to the records it already wrote? Either the team has an answer or it does not. With an answer, the longer timeout is a real simplification. Without one, the timeout only postpones the answer until it costs more.

Sorting a batch layer into those two piles is early work in the AWS migrations we run. On a ColdFusion migration, it starts with the scheduled tasks list in the ColdFusion Administrator, and it is the step that decides whether a new platform limit becomes simpler operations or a longer outage.

Have a problem worth solving?

Tell us what you are trying to build or modernize, and we will tell you honestly how we would approach it.