Zum Inhalt springen

Modal Release Notes

Einträge
40
Quellen
1
Zuletzt aktualisiert

Folge Modal, um die Release Notes in deinen Feed zu holen.

Modal

1.7.0 (2026-12-01)

Sandboxes now support fine-grained control over network egress via OutboundPolicy and OutboundRoute objects:

  • Pass an Outbound Policy to Sandbox.create() (or update it on a running Sandbox with Sandbox.set_outbound_policy()) to precisely specify an allowlist of CIDRs or domains that requests from inside the Sandbox can reach.
  • The Outbound Policy also supports Secret Injection via header replacement in outbound HTTPS requests. This allows you to withhold sensitive API credentials from untrusted processes in the Sandbox.
  • DNS lookups from the Sandbox are filtered to the domains in its routes when the policy ends by blocking unmatched traffic.
  • These new APIs replace the existing outbound_cidr_allowlist= and outbound_domain_allowlist= parameters in Sandbox.create(), along with the _experimental_outbound_policy= parameter and the modal.experimental.OutboundPolicy object, all of which are now deprecated.

We're adding more control over the use of pickle for serialization of Function, Dict, and Queue payloads: …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

1.6.4 (2026-11-11)

This release introduces new CLI commands for working with external images, including support for no-code deployment:

  • The new modal server deploy CLI deploys an App with an autoscaling Server directly from an image reference (i.e., a named Modal Image or a third-party registry URI). The only constraint is that the image should start an HTTP server that binds a specified port as part of its entrypoint.
  • The new modal image build CLI builds an Image from a local Dockerfile and publishes it as a named Modal Image for reference by other Modal Apps. Note that Dockerfile builds are subject to some limitations.
  • The new modal image pull CLI pulls an Image from a third-party registry and publishes it as a named Modal Image.
  • Image names can now be deleted with the modal image names delete CLI. This removes the name association but does not delete the underlying Image.

It's now easier to manage API tokens: …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

1.6.3 (2026-10-27)

This release includes a new Image Builder version, 2026.10. After upgrading your SDK, opt into the new Image Builder in your Workspace or Environment settings. We recommend using the latest version for security updates and performance enhancements:

  • The new version includes updates to base Debian images, Python versions, and the Modal dependencies that are automatically included in Function containers.
  • In Image.from_dockerfile(), the FROM instruction will be cached independently in a separate Modal Image layer and reused for subsequent builds that share the base image. This optimization only applies when the Dockerfile has a single stage and no instructions or parser directives preceding FROM. When caching the FROM instruction separately, any comments or whitespace preceding it will also be ignored.
  • In Image.from_registry(), the optional Python distribution (add_python=) will be added in a separate layer so that the Python version can be changed without invalidating the base layer cache.

This release includes several additional updates, including Image enhancements that apply across Image Builder versions: …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

1.6.2 (2026-10-15)

  • The new metrics observability surface provides a flexible query interface for fetching detailed time-resolved data about performance and resource consumption:
    • Use the new modal function metrics / modal server metrics CLIs to export metrics to JSON or CSV.
    • Use methods in the new Function.metrics / Server.metrics namespaces to operate on metrics in code.
  • It's now possible to programmatically manage Service Users:
    • Use the new modal workspace service-users CLI to create, inspect, delete, and update the roles of Service Users.
    • Use methods in the new Workspace.service_users namespace to perform the same operations in code.
  • We've increased the feature set around autoscaling configuration:
    • The new Function.autoscaler.settings() / Server.autoscaler.settings() methods report the current configuration with provenance for any overrides that are in effect. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.6.1: neue CLI-Befehle für Endpoint-Beobachtbarkeit und Container-Zählung

Modal 1.6.1 fügt CLI-Befehle für Endpoint-Informationen, -Statistiken und -Logs hinzu und erweitert die Statistik um die Gesamtzahl der Container.

  • We've added CLI commands for observability over Modal Endpoints:
    • modal endpoint info displays basic metadata.
    • modal endpoint stats reports aggregate performance metrics.
    • modal endpoint logs fetches or streams logs.
  • The modal function stats and modal server stats commands (along with the Function.stats() and Server.stats() methods) now include a container_total_count value, reporting the number of containers that were live at any point in the interval.
  • The Server.sessions.start() method will now wait up to 25 minutes if no container is available to place the session. Add timeouts in user code where queuing is not desired.

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.6.0: neue Sandbox-Backend, Cluster-Unterstützung und sticky Sessions

Modal 1.6.0 führt ein neues Sandbox-Backend ein, unterstützt Cluster für große Workloads und bietet sticky Sessions für WebSockets.

Sandboxes now use our next-generation backend, affording substantially higher creation rates and concurrency limits for CPU Sandboxes. No code changes are required, but there are some semantic differences to be aware of:

  • The modal.Sandbox.create() method now blocks until the Sandbox is scheduled instead of returning immediately.
  • If a Sandbox is unable to be scheduled (e.g. due to unsatisfiable resource or placement requests), creation will time out and raise a ResourceExhaustedError.

Functions and Servers can now run on ephemeral multi-node clusters for large-scale training or inference workloads:

  • Add the @modal.clustered() decorator to your function or class.
  • Use the new modal.Cluster object within each process to determine the rank and private IPs of containers in the cluster.

Servers now support sticky sessions with strong affinity guarantees, which is useful for workloads that require WebSockets to connect or reconnect to the same container:

  • Add the @modal.sessioned() decorator to the class defining the Server. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.5.5: Sandbox-Logs-API, Standardrollen und CLI-Profiloption

Modal 1.5.5 fügt eine API für Sandbox-Logs hinzu, erlaubt Standardrollen für neue beschränkte Umgebungen und bietet eine globale Profiloption in der CLI.

  • We've added a modal.Sandbox.logs API, allowing you to fetch() logs from a specific date/time range or to tail() the most recent logs. Note that only logs from the entrypoint process of a Sandbox are currently stored, and streaming logs via this interface is not currently supported.
  • It's now possible to configure the default role when creating a new Restricted Environment via the CLI or SDK. See the RBAC Guide for more details on default environment roles.
  • The modal CLI now accepts a global --profile option for simpler ad hoc profile selection.
  • We are deprecating a number of undocumented APIs on object types in the Modal SDK. These APIs have no intended user-facing functionality and will be removed in version 1.6.0. To be safe, check for deprecation warnings on this version before upgrading.

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.5.4: leistungsfähigeres Sandbox-Backend und Log-APIs

Modal 1.5.4 ermöglicht ein neues, leistungsfähigeres Sandbox-Backend über eine Option und fügt Log-APIs für Apps und Images hinzu.

With this release, it's now possible to opt into a more performant Sandbox backend, which affords substantially higher creation rates and concurrency. Set MODAL_SANDBOX_V2=1 as an environment variable and your Sandboxes will use this new system without any code changes. This will become the default behavior in version 1.6.0 of the Python SDK. Note that the new backend does not support the deprecated FileIO-based Sandbox filesystem API; please migrate any code that is currently issuing deprecation warnings before enabling the feature flag.

  • We've added logs APIs to the modal.App and modal.Image objects:
    • The App.logs API allows you to fetch(), tail(), or stream() all logs from an App.
    • The Image.logs API supports fetch() and tail() on Image build logs. Streaming build logs is not supported at this time.
  • We've also added a modal image logs CLI command with equivalent functionality.
  • We now support querying basic information about your Workspace's current pricing structure via the Workspace.billing.rates() API and modal billing rates CLI. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.5.3: Log-APIs und Abrechnungsübersichten

Modal 1.5.3 ergänzt APIs zum Abrufen von Logs für Funktionen, Server und Aufrufe sowie Abrechnungsübersichten pro Arbeitsbereich und Umgebung.

  • We've added new APIs for programmatically retrieving logs on several object types: Function, Server, and FunctionCall. Each object exposes three different methods, allowing you to stream() logs as they are generated, fetch() logs from a specific date/time range, or tail() the most recent logs.
  • It's now possible to retrieve a summary of billing information across billing cycles:
    • Use the modal.Workspace.billing.summary() method or the modal billing summary CLI to see workspace-level spend (broken down by category), credit usage, and the impact of any compute reservations.
    • Use the modal.Environment.billing.summary() method or the modal environment billing summary CLI to see environment-level spend.
  • We've made some changes to the interfaces for managing RBAC permissions:
    • We now explicitly represent all workspace member and service user roles in each Environment instead of having separate concepts for Environment membership and role. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.5.2: Workspace-Einstellungen programmatisch verwalten

Neue Schnittstellen zur programmatischen Verwaltung von Workspace-Einstellungen und ein routing_region-Argument für with_options() wurden hinzugefügt.

  • We've added new interfaces for programmatic management of workspace settings:
    • Use the modal.Workspace.settings.list() method or modal workspace settings list CLI to see current workspace-level settings.
    • Use the modal.Workspace.settings.set() method or modal workspace settings set CLI to configure new values.
  • We've added a modal.types module for exposing dataclasses returned from public methods as public API. The types in this module are not typically constructed by user code, but it may be useful to reference them for, e.g., adding type annotations to code that wraps the relevant Modal API.
  • The modal.Function.with_options() method now accepts a routing_region argument to dynamically configure regional routing at the time of invocation.
  • The modal container stop CLI now accepts a --graceful flag. With it, the container stops fetching new inputs but finishes the inputs it is currently running before exiting, instead of having them cancelled and rescheduled. Graceful stops are only supported for containers running a Modal Function or Modal Server. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.5.1: Neue Serverless-Primitive und Endpoints-CLI

Einführung von @app.server() für latenzarme HTTP-Anwendungen und der neuen Endpoints-CLI für LLM-Inferenz-Endpunkte.

This release includes several major new features, including the debut of a new serverless compute primitive for low-latency HTTP applications (@app.server()) and a new CLI for deploying production-ready LLM inference endpoints with minimal configuration (modal endpoint).

  • We're introducing a new @app.server() decorator (and modal.Server object), representing a serverless compute primitive that shares many features with Modal Functions while being optimized for serving HTTP-based applications with ultra-low latency. Read the guide for more information.
  • We're also introducing the modal endpoint CLI, providing programmatic access to our new Endpoints product. Endpoints let you deploy production-ready LLM inference servers with minimal configuration.
  • We've added several new SDK features for workspace configuration and observability: …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.5.0: Benannte Images und Versionierte Funktionen

This is a major release that includes several new features (named Images, version-pinned Function lookups, Sandbox domain allowlists), a new modal skills CLI, and a small number of breaking changes.

  • We're introducing a "named Image" concept, akin to a Modal-native Image registry. This feature allows you to decouple Image builds from App deployment or Sandbox creation, and it simplifies the process of sharing a canonical Image across a large number of unrelated Apps.
    • The new SDK method modal.Image.publish() assigns a name to an existing Image. Names can optionally include a "tag" suffix ("{name}:{tag}") to specify variants of an Image, e.g. to apply a versioning system.
    • The new SDK method modal.Image.from_name() refers directly to that Image by its name. Unlike with Image methods that specify parts of a build recipe, the modal.Image.from_name() lookup will either succeed or fail with a modal.exception.NotFoundError error, but it will never trigger a build.
    • The new modal image names CLI can be used to see the current name assignments. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.4.3: Regionales Routing in Public Beta

Regionales Routing für Funktionen ist jetzt in Public Beta und ermöglicht die Auswahl von Rechenzentren außerhalb von us-east.

  • This release introduces a new "regional routing" concept for Function inputs, which is now in Public Beta. By setting routing_region="..." in the @app.function() or @app.cls() decorators, you can configure the Function to route its inputs through servers in us-west, eu-west, or ap-south instead of us-east. This can reduce network latency and help you meet data residency obligations. While in Beta, this feature has a few constraints:
    • routing_region= can only be set during the initial deployment of a Function and cannot be changed in a subsequent redeployment.
    • Functions using regional routing outside of us-east can only be invoked with the .remote() and .map() methods.
  • We've added a new modal.Environment object for programmatically managing Environments, and we've expanded the modal environment CLI to support RBAC configuration.
  • It is now possible to dynamically configure modal.Function behavior using Function.with_options(), Function.with_concurrency(), and Function.with_batching().
  • The new modal.Volume.with_mount_options() method allows you to configure a Volume mount as read-only (read_only=True) and / or limit the mount to a subdirectory of the Volume (sub_path="/some/path"). …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.4.2: App-Rollover und Bootstrap-CLI

Neue CLI-Befehle modal app rollover und modal bootstrap sowie neue Sandbox-Dateisystemmethoden wurden eingeführt.

  • We've added a new modal app rollover CLI command for triggering a redeployment of an App without making any code or configuration changes. A rollover replaces existing containers with fresh ones. As with modal deploy, there are two strategies for switching between deployments:
    • --strategy=rolling (the default) will smoothly migrate traffic from old containers to new containers
    • --strategy=recreate will terminate all running containers so that any subsequent inputs will go to new containers
  • We've added a new modal bootstrap CLI command, which fetches deployable starter code for common AI applications (e.g., text generation, text-to-image, speech-to-text). This is an experiment: try it out and give us feedback!
  • We've added two methods to the new Sandbox filesystem API:
    • sandbox.filesystem.make_directory() creates a new directory on the Sandbox filesystem
    • sandbox.filesystem.remove() deletes a file or directory from the Sandbox filesystem
  • The new Sandbox filesystem methods replace the modal.Sandbox.mkdir and modal.Sandbox.rm methods, which are now deprecated.
  • Sandboxes also now support sb.unmount_image(path) to remove a previously mounted Image from a path and reveal the underlying Sandbox filesystem there again.
  • The modal app stop and modal container stop CLI commands now prompt for confirmation (pass --yes to skip). …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.4.1: Readiness-Probes für Sandboxes

Readiness-Probes für Sandboxes ermöglichen das Warten auf die Bereitschaft eines Dienstes per TCP oder Prozessausführung.

  • We're introducing a concept of "readiness probes" for modal.Sandbox. This feature lets you configure a readiness check on a TCP port (modal.Probe.with_tcp()) or by executing a process (modal.Probe.with_exec()). Calling sb.wait_until_ready() will block until the Probe succeeds:
    app = modal.App.lookup('sandbox-app', create_if_missing=True)
    probe = modal.Probe.with_tcp(8080)
    sb = modal.Sandbox.create(
        "python3", "-m", "http.server", "8080",
        readiness_probe=probe,
        app=app,
    )
    sb.wait_until_ready()
    
  • We fixed a longstanding bug that could cause WebSocket performance to degrade after handling hundreds of connections from the same container.
  • We improved the performance of modal container logs when fetching logs for an old container.
  • We fixed a bug introduced in 1.4.0 that made the modal CLI crash on typer<0.19.0.

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.4.0: Erweiterte Logs und Sandbox-Dateisystem-API

CLI-Logbefehle unterstützen jetzt historische Logs, Filter und neue Standardverhalten, und eine neue Sandbox-Dateisystem-API wurde eingeführt.

We've made significant CLI enhancements so that Modal logs can be more accessible to coding agents:

  • The modal app logs and modal container logs commands now have the ability to fetch historical logs using counting (e.g. --tail 1000) or time-based (e.g., --since 4h, --until 2026-03-15, etc.) configuration. Note that historical log access is subject to plan-level retention limits.
  • The modal container logs command also accepts --all to fetch the complete set of logs for that Container or Sandbox.
  • Both CLI commands now accept a --search filter, and they can also filter by --source (stdout/stderr/system).
  • The modal app logs command additionally accepts --function, --function-call, and --container filters.
  • The modal app logs command can prefix each line with the ID of the Function, FunctionCall, or Container where it originated (e.g. --show-function-id).
  • Note that the default behavior of these commands has changed. Previously, they would follow (i.e., stream) logs by default, but you now must pass --follow to get this behavior. The new default will always show the most recent 100 log entries.

We're releasing a new Sandbox filesystem API (currently in Beta) with significantly improved reliability and ergonomics:

  • Use sb.filesystem.copy_from_local / sb.filesystem.copy_to_local to transfer file contents between your local filesystem and the Sandbox filesystem. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.3.5: Changelog-CLI und Secret-Updates

Neue modal changelog-CLI erlaubt das Abrufen von Changelog-Einträgen, und modal.Secret.update ermöglicht programmatische Änderungen an Secrets.

  • We've added a modal changelog CLI for retrieving changelog entries with a flexible query interface (e.g. modal changelog --since=1.2, modal changelog --since=2025-12-01, modal changelog --newer). We expect that this will be a useful way to surface information about new features to coding agents.
  • We've added a new modal.Secret.update method, which allows you to programmatically modify the environment variables within a Secret. This method has the semantics of Python's dict.update: Secret contents can be overwritten or extended when using it. Note that Secret updates will take effect only for containers that start up after the modification.
  • The dataclass returned by modal.Function.get_current_stats() now includes a num_running_inputs field that reports the number of inputs the Function is currently handling.

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.3.4: Directory-Snapshots und Detach für Sandboxes

Directory-Snapshots ermöglichen das Persistieren von Verzeichnissen über Sandboxes hinweg, und detach() trennt den Client von der Sandbox.

  • We're introducing "Directory Snapshots": a new beta feature for persisting specific directories past the lifetime of an individual Sandbox. Using the new methods modal.Sandbox.snapshot_directory() and modal.Sandbox.mount_image(), you can capture the state of a directory and then later include it in a different Sandbox:
    sb = modal.Sandbox.create(app=app)
    snapshot = sb.snapshot_directory("/project")
    
    sb2 = modal.Sandbox.create(app=app)
    sb2.mount_image("/project", snapshot)
    
    This feature can be useful for separating the lifecycle of application code in the Sandbox's main Image from project code that changes in each Sandbox session. Files in the mounted snapshot also benefit from several optimizations that allow them to be read faster. See the Sandbox Snapshot guide for more information.
  • We've added a new modal.Sandbox.detach() method that we recommend calling after you are done interacting with a Sandbox. This method disconnects your local client from the Sandbox and cleans up resources associated with the connection. After calling detach, operations on the Sandbox object may raise and are otherwise not guaranteed to work.
  • The modal.Sandbox.terminate() method now accepts a wait parameter. With wait=True, terminate will block until the Sandbox is finished and return the exit code. The default wait=False maintains the previous behavior. …

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.3.3: Billing-Report GA und Async-Warnungen

Billing-Report-API ist allgemein verfügbar, und Warnungen bei async-Nutzung blockierender Schnittstellen sind jetzt standardmäßig aktiviert.

  • We've added a new modal billing report CLI and promoted the modal.billing.workspace_billing_report API to General Availability for all Team and Enterprise plan workspaces.
  • We've added modal.Queue.from_id() and modal.Dict.from_id() methods to support referencing a Queue or Dict by its object id.
  • Modal's async usage warnings are now enabled by default. These warnings will fire when using a blocking interface on a Modal object in an async context. We've aimed to provide detailed and actionable suggestions for how to modify the code, which makes the warnings verbose. While we recommend addressing any warnings that pop up, as they can point to significant performance issues or bugs, we also provide a configuration option to disable them (MODAL_ASYNC_WARNINGS=0 or async_warnings = false in the .modal.toml). Please report any apparent false positives or incorrect suggested fixes.
  • We've fixed a bug where the ASGI scope's state contents could leak between requests when using @modal.asgi_app.

Originalquelle(öffnet in neuem Tab)Problem melden

Modal

Modal 1.3.2: Dashboard-URLs für Objekte

Neue get_dashboard_url()-Methode und CLI-Befehle für den Zugriff auf Dashboard-Ansichten von Modal-Objekten.

  • Modal objects now have a .get_dashboard_url() method. This method will return a URL for viewing that object on the Modal dashboard:
    fc = f.spawn()
    print(fc.get_dashboard_url())  # Easy access to logs, etc.
    
  • There is also a new modal dashboard CLI and new modal app dashboard / modal volume dashboard CLI subcommands:
    modal dashboard  # Opens up the Apps homepage for the current environment
    modal dashboard <object-id>  # Opens up a view of this object
    modal app dashboard <app-name>  # Opens up the dashboard for this deployed App
    modal volume dashboard <volume-name>  # Opens up the file browser for this persistent Volume
    
  • You can now pass a Sandbox ID (sb-xxxxx) directly to the modal container logs CLI.
  • The modal token info CLI will now include the token name, if provided at token creation.
  • We've fixed an issue where modal.Cls.with_options() (or the with_concurrency() / with_batching() methods) could sometimes use stale argument values when called repeatedly.

Originalquelle(öffnet in neuem Tab)Problem melden