Cloud & Automation
Lambda’s longer timeout: design the retry before extending the job
AWS raises the on-demand Lambda timeout ceiling. Review partial completion, duplicate requests and user-visible progress before changing a production setting.
The verified change
On November 19, AWS announced a maximum timeout of 30 minutes for on-demand Lambda Event Functions, up from 15, across commercial AWS Regions. Standard Lambda pricing applies. A higher execution ceiling gives teams more room, but does not demonstrate that their processing is reliable.
Our recommendation: identify where the time goes
Before extending a timeout, separate useful processing from waiting on another service. Use a representative input and record the main stages, elapsed time and completion state. A large document conversion and a stalled dependency need different responses. Decide whether more execution time addresses the actual constraint or merely delays detection of a failure. These are proposed investigation steps, not measurements from your account.
Make repeated requests safe
Imagine an import that has written some customer records when the caller loses its connection. The next attempt must not blindly create those records again. We recommend assigning a stable identifier to the business operation and defining how the application recognises work already completed. Document the handling of partial results and conflicting retries. A longer timeout should not be used as a substitute for this design.
Keep the user informed
Review the entire path from the user interface to the worker. Do not assume that extending the function setting also extends every caller or intermediary deadline. For work that outlasts a normal interaction, consider a job receipt and a status view instead of leaving the user waiting on an open request. Distinguish accepted, processing, completed and failed states. Define how the result can be recovered if the user closes the page.
Test interruption as well as completion
In a controlled environment, interrupt processing after a meaningful partial result, then repeat the same operation. Verify that the final output is correct and that notifications or other side effects are not duplicated. Test a slow dependency and a permanently failing input. Give each scenario an expected outcome before running it; a successful large input alone is insufficient evidence for a production change.
Set an operating boundary
Choose the timeout based on observed workloads and a business deadline rather than automatically selecting the maximum. Monitor duration, failures, queued work and cost per completed operation. Define who investigates a job that remains unfinished and what recovery action is safe. Roll out the change on a limited workload first, retaining the evidence needed to decide whether longer execution is preferable to splitting the work into smaller stages.