Simulators
Modal changelog
What changed in each Modal simulator release, newest first.
v0.0.4 — 2026-11-25
-
A deployed class is called by name.
modal.Cls.from_namenow returns a class you can call: its methods, its parameters andwith_optionswork as they do on the class itself. Every method used to raiseNotFoundError. -
A command’s output arrives as it is written. A loop over a running command’s
stdoutorstderrnow gets each line when the command writes it, fromSandbox.execand from a sandbox’s own command. Output used to arrive only when the command ended. -
Image.envsets variables. A variable an image sets withImage.envnow reaches the commands of a sandbox and the code of a function on that image.env=on the sandbox or the function replaces one of the same name. -
A stopped app ends its calls and takes no more.
modal.App.lookup(name).stop(), and leavingwith app.run():, now end the app’s running calls and containers at once, a scheduled run included. After the stop, a handle you kept raisesConflictErrorand a lookup by name raisesNotFoundError. A stopped app used to keep taking calls. -
Two SDK errors are gone. Listing a directory that holds a fifo or a socket with
sandbox.filesystemno longer raisesValueError: each is listed as a file. A run that calls a function or a sandbox command no longer logsAuth token does not contain exp field. -
A sandbox unmounts an image and waits until ready.
unmount_imageandwait_until_readyno longer raiseUnimplementedError. The simulator runs no readiness probe, sowait_until_readyreturns once the sandbox has started, and the files an image brought stay at its path after the unmount. -
Dicts, queues, secrets and apps are listed.
Dict.objects.listandQueue.objects.listnow work, andmodal app listlists the simulator’s apps.Secret.objects.listnow returns every secret once, newest first, andmax_objectskeeps the newest. With 100 secrets or more it used to repeat some and leave out the newest. -
modal.Queue.objects.createcreates a queue. Creating a queue by name withmodal.Queue.objects.createnow works. It used to raiseNotFoundError.
v0.0.3 — 2026-11-22
rate_limits: realapplies Modal’s documented rate limits. With the setting on, a call past one of them, such as parametrized function creation’s burst of 1,000 refilled at 1 a second, returnsRESOURCE_EXHAUSTED. With the setting off, the default, no call is refused for speed.
v0.0.2 — 2026-11-22
-
A map and a run of spawns run their calls at once. Calls sent together now run on several containers, where they ran one after another in one: as many as the function’s
max_containersallows, up to the simulator’s limit on running commands, which is 16 unlessRYSTIC_COMPUTE_MAX_LIVEraises it. A function that sets@modal.concurrentruns that many inputs in each container. A sandbox command that needs a place among the 16 takes it from a container with no call to run, where it used to fail. -
A sandbox is found again, and a named secret changes.
Sandbox.from_namereturns the running sandbox of that name, a second running sandbox cannot take the name, and a sandbox fetched withSandbox.from_idorSandbox.from_nameruns commands.sb.stdinreaches the command given toSandbox.create. A secondmodal secret createfor a name now fails,--forcereplaces the secret’s values, and a deploy fails when a secret lacks one of itsrequired_keys.Cls.with_options(secrets=...)andwith_options(env=...)reach the class’s containers. A function’s own code can call.map(),.remote()and.spawn()on another function. A snapshot past the simulator’s limit of 64 between resets raises an error, where it used to return an image that restored empty. -
A deployed function’s schedule runs. A function deployed with
schedule=modal.Period(...)orschedule=modal.Cron(...)now runs when a test moves the simulator’s clock past its due times, once for each and at most 100 times in one move. Nothing runs at the deploy, andmodal.App.lookup(name).stop()ends the schedule. A schedule used to be stored and never run. -
A printed line arrives whole. Inside
modal.enable_output()a line a function prints is shown in one piece. A line could arrive in two pieces, with the SDK’s own output between them, when the simulator read the container in the middle of a write. Output that ends no line, such as a prompt or a progress bar, now shows when its container ends. -
Dicts, queues and a secret’s whole life.
modal.Dictandmodal.Queuenow work, by name or ephemeral, from your test and from inside a function: a queue keeps its partitions apart, and an emptygetreturnsNoneor raisesqueue.Emptyat its timeout.Secret.updateandmodal secret deletework too, andSecret.objects.listlists the simulator’s secrets while it holds fewer than 100.Dict.objects.listandQueue.objects.listdo not work yet. -
A legacy filesystem snapshot returns its image. With
MODAL_USE_LEGACY_FILESYSTEM_SNAPSHOT=1,snapshot_filesystem()on a sandbox created withgpu=now returns an image, and a sandbox created from it reads the file back. It used to raiseExecutionError.
v0.0.1 — 2026-11-21
-
A local Modal for the code that calls it through the Python SDK. The first release of the Modal simulator serves the SDK’s gRPC API on one port. It serves apps and functions, which you call with
.remote(),.spawn()and.map()or deploy and call by name, and the methods of a class while its app runs. A function takessecrets=andenv=,modal.enable_output()shows what each function prints, and a name can be deployed again. Its sandboxes run commands with stdin, exit codes, tags,env=and a filesystem API, on a sandbox created withgpu=too. Your function code and sandbox commands run for real, as local processes, and return their own results. Nothing reaches Modal. -
Four scenarios to boot straight into.
modal_app_states(six apps across the app lifecycle),modal_map_backlog(a thumbnail batch app caught mid-run),modal_nightly_etl(a deployed nightly job on its fourth version) andmodal_sandbox_fleet(four sandboxes running, exited, timed out and terminated).--scenarioboots one, andPOST /_rystic/scenarioloads one without a restart. -
Tested against live Modal. The newest full measurement, of 2026-11-21, matched 191 of the 192 tests that compare the simulator with Modal (99.5%), and every one of them gave a verdict. The simulator’s page lists, under Limitations, the differences this release ships with, among them generators, web endpoints and a deployed class looked up by name.
-
The Docker image runs your code with no Python on your machine. The simulator’s image carries a Python with the
modalpackage the simulator is built against, first on itsPATH, so a plaindocker runruns your sandboxes’ commands and your functions. SetRYSTIC_COMPUTE_PYTHON, or mount an environment over/opt/rystic/python, to run them on a Python of your own. A call whose Python is missing or has nomodalfails with an error that says what to install.