Subscribe free
Morning Merge Python · Thursday, November 26, 20264 min read

Lambda goes to 30 minutes; Python SDK drives MicroVMs

Also: sqlite3_rsync copies without the spare disk, and datasette-charts annotates

CPython and packaging were quiet overnight, so today belongs to where your Python runs: what Lambda's recent 30-minute timeout doesn't stretch, and MicroVM sandboxes driven from Python.

The main thing

A teal articulated snake coils around an hourglass on a workbench, stacking a second glass section on top so it stands twice as tall.

AWS Lambda doubles its timeout to 30 minutes. AWS recently raised the maximum timeout for on-demand Lambda Event Functions from 15 to 30 minutes, InfoQ reports. The old limit had stood since 2018.

It covers synchronous, asynchronous and event source mapping invocations in all commercial regions, at standard pricing and with no opt-in. Nothing changes until you ask, though. The limit is set per function, and Lambda rejects anything above 1,800 seconds:

aws lambda update-function-configuration \
    --function-name my-demo-function \
    --timeout 1800

That's the batch job you split into chunks to stay under 15 minutes. AWS names agentic requests that chain model and tool calls, media transcoding, Monte Carlo simulations and report generation as the workloads that outgrew the old limit. Web Functions keep 15 minutes.

The more useful half of AWS's post is the list of things around the function that don't stretch with it:

Practitioner Wibo van der Sluis found that Lambda enforces the SQS rule only when a mapping is created; lowering the queue's visibility timeout afterwards went through. He also notes that an async function timing out three times runs 90 minutes before its event reaches the dead-letter queue.

What to do: raise the timeout only on the functions that need it, and fix the queue settings in the same change. If a slow handler sits behind an API, 30 minutes isn't the fix.

Try this

A teal articulated snake in a hard hat carries a small parcel toward a row of glass-walled booths, each holding one sealed crate.

Lambda durable functions can now drive MicroVMs, from Python. AWS released a developer preview extension for the Durable Execution SDK, for TypeScript and Python, that orchestrates Lambda MicroVMs. A durable function runs each task in a MicroVM as a durable operation: it checkpoints progress, retries failed tasks and refreshes MicroVM tokens.

The pitch is running untrusted or agent-generated code in VM-level isolation, with the orchestration written as ordinary durable function code. You can run one-off tasks, or open a MicroVM session where tasks share files and memory, and a single function can drive several MicroVMs in parallel. An optional worker library inside your MicroVM image receives tasks, sends heartbeats and reports results.

AWS says preview features may change and shouldn't run in production. If you've been hand-rolling a sandbox runner for an agent that executes Python, the sample application is a cheap afternoon.

Worth reading

A teal articulated snake stretches between filing cabinets on two desks, carrying a single page from one open drawer to the other.

sqlite3_rsync copies a live SQLite database without a second local copy. The tool isn't new. It shipped as experimental in SQLite 3.47.0 in October 2024 and was enhanced in SQLite 3.50.0 in May 2025. Simon Willison's note is about the property that's easy to miss.

The backup API and VACUUM INTO both need enough free disk for a full duplicate, so a database using more than half a small instance's disk can't be snapshotted that way. sqlite3_rsync sends a snapshot over SSH to another machine instead, and can bring an existing replica up to date without resending everything.

The replica sends hashes for pages or groups of pages, and the origin sends back only the pages that differ. If the two copies start out very different, the hash exchange can push total bandwidth past the database's size, by a few percent at most. If your Django or Datasette app runs on SQLite on a small box, this is your backup story.

Also shipped

datasette-charts 0.3a0 adds annotations. Simon added lines, shaded areas and labels you can layer onto a chart, alone or together. You can tweak them in the chart builder UI in Datasette Lite, and with Datasette Agent installed, the agent builds annotated charts on request. It's an alpha: annotate an event whose date you know and check the shading lands there.

langchain-anthropic 1.7.13 accepts your own HTTP and SDK clients. That's the one feature line in the release, so you can hand the integration a client you've already configured instead of letting it build its own. Separately, langchain-core==1.8.5 fixes streaming so later chunks reuse the provider's message id. Both changelogs are one-liners, so that's everything we know.

Before you set any function to 1,800 seconds, do the concurrency math in AWS's post.

← All Morning Merge Python issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →