Skip to content
audiotale.net
Sign in
NewsNews

AWS Lambda 30-minute timeout: Event Functions now run up to 1,800 seconds, what to check first

Lambda's on-demand limit doubles from 15 to 30 minutes; here is how to set it and the queue, network and concurrency traps AWS says to check first.

audiotale.net team

· 8 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What to do
  3. What happened
  4. Background: a ceiling that held for eight years
  5. How it works
  6. What it means
  7. What we don't know yet
  8. What to watch next
  9. Sources

AWS has doubled the longest an on-demand Lambda Event Function can run, from 15 minutes to 30 (1,800 seconds), for synchronous, asynchronous and event-source-mapping invocations. It is the first change to that on-demand ceiling since 2018, and it comes with a list of traps that can turn a bigger number into a bigger bill or a failed job if you raise it blindly.

Key points

  • AWS announced on 19 November 2026 that on-demand Lambda Event Functions can be configured with a timeout of up to 30 minutes (1,800 seconds), double the previous 15-minute limit.
  • It applies to synchronous, asynchronous and event source mapping (ESM) invocations in all commercial AWS Regions, and standard Lambda pricing applies.
  • On Lambda Managed Instances, synchronous invocations also reach 30 minutes, while asynchronous and ESM invocations keep the 90-minute timeout AWS launched in September 2026.
  • Concurrency needed is requests per second times duration, so the same traffic at 30 minutes needs twice the concurrency of 15 minutes. One request per second at 30 minutes each needs 1,800 concurrent executions.
  • For SQS triggers, AWS says to set the queue's visibility timeout to at least six times the function timeout, which is at least 3 hours for a 30-minute function.

What to do

Raise the timeout. With the AWS CLI: aws lambda update-function-configuration --function-name my-demo-function --timeout 1800 --region us-east-1. In an AWS SAM template, set Timeout: 1800. The console path is Configuration, General configuration. The new value applies to invocations that start after the update; for event source mappings AWS says to allow a few minutes for it to propagate. Lambda rejects values above the limit with a validation error.

Before you raise it, check five things (all from AWS's own guidance):

  1. Callers. If another AWS service invokes your function synchronously, that service applies its own timeout, so confirm it supports the longer duration. Set your client's read and socket timeouts longer than the function timeout, for example in the AWS SDK client that calls the Invoke API.
  2. Queues. For SQS, set the visibility timeout to at least six times the function timeout. Lambda validates this when you create the mapping, but does not stop you changing queue or function settings later and creating a mismatch.
  3. Older Kafka, Amazon MQ and DocumentDB mappings. Invocations from Amazon MQ (ActiveMQ and RabbitMQ) and Amazon DocumentDB mappings remain limited to 14 minutes. The same applies to Kafka mappings created before 19 November 2026 that do not use provisioned mode. For those, keep the timeout at 840 seconds or less, or create a new Kafka mapping or turn on provisioned mode.
  4. Network and credentials. A NAT gateway drops idle connections after 350 seconds, so long calls need keep-alive packets. Make sure database, cache and external API idle timeouts cover the whole run, and that temporary credentials stay valid for the full execution or are refreshed in the background.
  5. Concurrency quota. Check your account quota and any reserved concurrency before you raise the value, because slower functions hold slots longer.

What happened

On 19 November 2026 AWS published a What's New post and a Compute Blog post announcing the change. In AWS's words, customers said 15 minutes was "still too short" for many on-demand workloads. The examples AWS gives are agentic AI requests that chain model calls and tool invocations, media transcoding and file conversion of large inputs, Monte Carlo simulations and portfolio risk calculations, report generation across several data sources at peak volumes, and ETL steps triggered by SQS or S3 events.

The same limit now applies when you use Lambda durable functions or call functions from AWS Step Functions Standard workflows. AWS's table of limits puts it like this: on demand, Event Functions get 30 minutes whether invoked synchronously, asynchronously or through an ESM; on Lambda Managed Instances, synchronous invocations get 30 minutes and asynchronous and ESM invocations get 90 minutes; Web Functions get 15 minutes; MicroVMs get 8 hours (running and suspended). A durable execution as a whole can run for up to one year when invoked asynchronously, but each invocation inside it is bound by the function timeout, and a synchronous durable execution is limited to 30 minutes.

Some limits did not move. The Init phase keeps its limits of 10 seconds for on-demand functions and 15 minutes on Lambda Managed Instances, and provisioned concurrency and SnapStart keep their 15-minute initialization limit. On Lambda Managed Instances, Lambda applies the 30-minute limit to synchronous invocations even if the configured timeout is higher.

An independent test backs up the basics. A DevelopersIO writer at Classmethod ran functions with a 1,800-second timeout in Tokyo (ap-northeast-1) on Python 3.13, arm64, 128 MB. A function that was set to run 1,790 seconds finished normally, with a recorded duration of 1,790,044 ms, both when invoked asynchronously and when called synchronously from Step Functions Standard. A function that ran until the limit ended at exactly 1,800,000 ms with "Status: timeout" in the log's REPORT line. The author noted that for Python 3.13 no "Task timed out" line appeared, so the timeout was recognisable only from that status field, a detail worth knowing if your alerting greps for the old message. The test covered on-demand synchronous (via Step Functions) and asynchronous invocation only; the author left event source mappings and Managed Instances to AWS's blog.

Background: a ceiling that held for eight years

AWS wrote that Lambda launched in 2014 with a 60-second timeout, moved to 5 minutes in 2015 and to 15 minutes in 2018. In its weekly roundup AWS observed that the limit then stayed there for eight years.

Maximum Lambda function timeout over timeminutes
Maximum Lambda function timeout over time (minutes)
minutes
20141
20155
201815
Nov 202630

Source: AWS Compute Blog, 19 November 2026

The change arrives with a cluster of other Lambda updates in the same fortnight. AWS's roundup lists GPU support for Event Functions on Lambda Managed Instances (container images on G-series instances from G4dn to G6e, with a 9.75% management fee on top of the EC2 instance price and $0.20 per million requests) and customer-managed runtimes, which let a platform team package approved SDKs, certificates and monitoring agents as an image in Amazon ECR and have functions pick up updates as environments recycle. Lambda now also has three form factors, Event Functions, Web Functions and MicroVMs, and AWS has renamed ordinary Lambda functions "Event Functions". If you have been reading older documentation, that is why the names differ.

How it works

A function's timeout is the cap on one invocation, not on a workflow. How AWS wants the two to combine:

  • Idempotent jobs. For an ETL step triggered by SQS, AWS says the longer timeout alone may be enough, since a failed invocation returns the message to the queue for another try.
  • Expensive jobs. Where re-running is costly, AWS suggests pairing the longer timeout with durable functions. Its example: a 25-minute inference run that fails at minute 22 restarts from zero without checkpoints, but resumes from the last checkpoint with durable functions. Durable functions save state with step() and wait() calls and resume after a failure.
  • Streams. For Kinesis and DynamoDB Streams, Lambda processes one batch per shard at a time by default, so longer invocations slow how fast each shard is read. AWS advises watching the IteratorAge metric and raising the parallelization factor if records back up, and turning on partial batch failure reporting so only failed records are retried.
  • Retries. If an asynchronous invocation fails or times out, Lambda applies your retry policy, up to two retries by default, then routes the event to a dead-letter queue or on-failure destination.
Concurrency needed for 1 request per second, by average durationconcurrent executions
Concurrency needed for 1 request per second, by average duration (concurrent executions)
concurrent executions
30 minutes1800
15 minutes900

Source: AWS Compute Blog (concurrency = requests per second x duration in seconds)

What it means

For developers, the plain gain is fewer workarounds. Work that ran 16 to 30 minutes used to mean splitting jobs into chunks, moving to Step Functions or ECS, or paying for Managed Instances. Now it can stay on Lambda's per-request, scale-from-zero model. AWS singles out agent-style requests that wait on several model and tool calls; if you run those behind Lambda, the 30-minute ceiling gives them more headroom.

The costs are less visible. Pricing per millisecond is unchanged, but a function that hangs now hangs for twice as long before it is cut off, so a bug that used to cost 15 minutes of compute costs 30, and it holds twice the concurrency while it does. The arithmetic in AWS's own example, 1,800 concurrent executions for one request per second, is the thing to run against your quota. Longer runs also widen the window for duplicate deliveries: AWS says Lambda does not guarantee exactly-once processing and recommends Powertools for AWS Lambda to make writes and payments idempotent.

It does not make Lambda a general long-running job runner. Fifteen-minute timeouts remain for Web Functions, and anything beyond 30 minutes on demand still needs durable functions, Managed Instances' 90-minute asynchronous mode, or another service.

What we don't know yet

  • Whether AWS will go beyond 30 minutes for on-demand functions. Its blog invites customers who need more to say so, but gives no plan.
  • How real workloads behave at the limit. The one independent test we found used a sleep loop at 128 MB; it shows the limit works, not how an inference job or a transcode behaves.
  • Whether every AWS service that invokes Lambda synchronously already supports 30 minutes. AWS says to verify for each service, and does not list them.

What to watch next

Watch AWS documentation for the per-service synchronous limits, any increase for Web Functions, and third-party framework updates (SAM, CDK, Serverless Framework, Terraform) that cap timeouts at 900 seconds in validation. Before you change anything in production, test a canary function at 1,800 seconds, set an alarm on duration and concurrency, and confirm your queue visibility timeouts.

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.