# Runtime Support

To keep your functions up-to-date and secure, we occasionally need you to update
your functions and re-deploy them to use a supported runtime. Runtimes on
Cloud Run functions include an operating system, software required to build and
execute code written for a specific programming language, and software to
support your functions. Cloud Run functions applies updates to runtimes in
accordance with your selected
[security update policy](https://docs.cloud.google.com/functions/docs/securing/execution-environment-security.md.txt#security_update_policy).

## Deprecation and Decommissioning

When a component is no longer actively maintained, Cloud Run functions may
deprecate and eventually remove the runtime.

This has three aspects: a publication of the deprecation date, a deprecation
period, and a decommission date.
In the following tables, the deprecation date is the start of the deprecation
period, while the decommission date indicates the start of the
decommission period.

During the deprecation period, you can generally continue to create new
functions and update existing functions using the runtime. You should use this
time to migrate functions that use the deprecated runtime to a more up-to-date
runtime.

After the decommission date, you can no longer create new functions or update
existing functions using the runtime. You must choose a more up-to-date runtime
to deploy your functions. Functions that continue to use a decommissioned
runtime may be disabled.

## Support Schedule

Here is the list of supported Cloud Run functions runtimes, as
well as runtimes that have been deprecated or decommissioned.

Based on qualification and stability of releases, availability and key dates might
be delayed. A blank deprecation or decommission date means that phase
has not yet been scheduled. Revisit this page to stay up to date.

> [!NOTE]
> **Note:** You use the **Runtime ID** value if you're deploying functions [from the command line](https://docs.cloud.google.com/functions/docs/deploying/filesystem) or through [Terraform](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions_function).

### Node.js

| Runtime | Generation | Environment | Runtime ID | Deprecation | Decommission |
|---|---|---|---|---|---|
| Node.js 26 (Preview) | 2nd gen | Ubuntu 24.04 | nodejs26 |   |   |
| Node.js 24 | 2nd gen | Ubuntu 24.04 | nodejs24 | 2028-04-30 | 2028-10-31 |
| Node.js 22 | 1st gen, 2nd gen | Ubuntu 22.04 | nodejs22 | 2027-04-30 | 2027-10-31 |
| Node.js 20 | 1st gen, 2nd gen | Ubuntu 22.04 | nodejs20 | 2026-04-30 | 2026-10-30 |
| Node.js 18 | 1st gen, 2nd gen | Ubuntu 22.04 | nodejs18 | 2025-04-30 | 2025-10-30 |
| Node.js 16 | 1st gen, 2nd gen | Ubuntu 18.04 | nodejs16 | 2024-01-30 | 2025-01-30 |
| Node.js 14 | 1st gen, 2nd gen | Ubuntu 18.04 | nodejs14 | 2024-01-30 | 2025-01-30 |
| Node.js 12 | 1st gen, 2nd gen | Ubuntu 18.04 | nodejs12 | 2024-01-30 | 2025-01-30 |
| Node.js 10 | 1st gen, 2nd gen | Ubuntu 18.04 | nodejs10 | 2024-01-30 | 2025-01-30 |
| Node.js 8 | 1st gen, 2nd gen | Ubuntu 18.04 | nodejs8 | 2020-06-05 | Feb 2021 |
| Node.js 6 | 1st gen, 2nd gen | Ubuntu 18.04 | nodejs6 | 2019-04-17 | Aug 2020 |

### Python

| Runtime | Generation | Environment | Runtime ID | Deprecation | Decommission |
|---|---|---|---|---|---|
| Python 3.15 (Preview) | 2nd gen | Ubuntu 24.04 | python315 |   |   |
| Python 3.14 | 2nd gen | Ubuntu 24.04 | python314 | 2030-10-10 | 2031-04-10 |
| Python 3.13 | 2nd gen | Ubuntu 22.04 | python313 | 2029-10-10 | 2030-04-10 |
| Python 3.12 | 1st gen, 2nd gen | Ubuntu 22.04 | python312 | 2028-10-02 | 2029-04-02 |
| Python 3.11 | 1st gen, 2nd gen | Ubuntu 22.04 | python311 | 2027-10-24 | 2028-04-24 |
| Python 3.10 | 1st gen, 2nd gen | Ubuntu 22.04 | python310 | 2026-10-04 | 2027-04-04 |
| Python 3.9 | 1st gen, 2nd gen | Ubuntu 18.04 | python39 | 2025-10-05 | 2026-04-05 |
| Python 3.8 | 1st gen, 2nd gen | Ubuntu 18.04 | python38 | 2024-10-14 | 2025-10-14 |
| Python 3.7 | 1st gen | Ubuntu 18.04 | python37 | 2024-01-30 | 2025-01-30 |

### Go

| Runtime | Generation | Environment | Runtime ID | Deprecation | Decommission |
|---|---|---|---|---|---|
| Go 1.27 | 2nd gen | Ubuntu 24.04 | go127 | Aug/Sept 2027 | Feb/March 2028 |
| Go 1.26 | 2nd gen | Ubuntu 24.04 | go126 | Feb/March 2027 | Aug/Sept 2027 |
| Go 1.25 | 2nd gen | Ubuntu 22.04 | go125 | 2026-10-01 | 2027-04-01 |
| Go 1.24 | 2nd gen | Ubuntu 22.04 | go124 | 2026-09-02 | 2027-03-02 |
| Go 1.23 | 2nd gen | Ubuntu 22.04 | go123 | 2026-02-21 | 2026-08-21 |
| Go 1.22 | 2nd gen | Ubuntu 22.04 | go122 | 2026-01-28 | 2026-07-28 |
| Go 1.21 | 1st gen, 2nd gen | Ubuntu 22.04 | go121 | 2025-09-03 | 2026-03-03 |
| Go 1.20 | 1st gen, 2nd gen | Ubuntu 22.04 | go120 | 2024-05-01 | 2025-05-01 |
| Go 1.19 | 1st gen, 2nd gen | Ubuntu 22.04 | go119 | 2024-04-30 | 2025-01-30 |
| Go 1.18 | 1st gen, 2nd gen | Ubuntu 22.04 | go118 | 2024-01-30 | 2025-01-30 |
| Go 1.16 | 1st gen, 2nd gen | Ubuntu 18.04 | go116 | 2024-01-30 | 2025-01-30 |
| Go 1.13 | 1st gen, 2nd gen | Ubuntu 18.04 | go113 | 2024-01-30 | 2025-01-30 |
| Go 1.11 | 1st gen, 2nd gen | Ubuntu 18.04 | go111 | 2020-08-05 | Feb 2021 |

> [!NOTE]
> **Note:** Go's [release policy](https://go.dev/doc/devel/release#policy) states that each major Go release is supported until there are two newer major releases. Key dates might not be available until newer versions of Go are made publicly available.

### Java

| Runtime | Generation | Environment | Runtime ID | Deprecation | Decommission |
|---|---|---|---|---|---|
| Java 25 | 2nd gen | Ubuntu 24.04 | java25 | October 2031 |   |
| Java 21 | 2nd gen | Ubuntu 22.04 | java21 | September 2031 |   |
| Java 17 | 1st gen, 2nd gen | Ubuntu 22.04 | java17 | October 2027 |   |
| Java 11 | 1st gen, 2nd gen | Ubuntu 18.04 | java11 | 2024-10-31 | 2025-10-31 |

### Ruby

| Runtime | Generation | Environment | Runtime ID | Deprecation | Decommission |
|---|---|---|---|---|---|
| Ruby 4.0 | 2nd gen | Ubuntu 24.04 | ruby40 | 2029-03-31 | 2029-09-30 |
| Ruby 3.4 | 2nd gen | Ubuntu 22.04 | ruby34 | 2028-03-31 | 2028-09-30 |
| Ruby 3.3 | 1st gen, 2nd gen | Ubuntu 22.04 | ruby33 | 2027-03-31 | 2027-09-30 |
| Ruby 3.2 | 1st gen, 2nd gen | Ubuntu 22.04 | ruby32 | 2026-03-31 | 2026-09-30 |
| Ruby 3.0 | 1st gen, 2nd gen | Ubuntu 18.04 | ruby30 | 2024-03-31 | 2025-03-31 |
| Ruby 2.7 | 1st gen, 2nd gen | Ubuntu 18.04 | ruby27 | 2024-01-30 | 2025-01-30 |
| Ruby 2.6 | 1st gen, 2nd gen | Ubuntu 18.04 | ruby26 | 2024-01-30 | 2025-01-30 |

### PHP

| Runtime | Environment | Generation | Runtime ID | Deprecation | Decommission |
|---|---|---|---|---|---|
| PHP 8.5 | 2nd gen | Ubuntu 24.04 | php85 | 2029-12-31 | 2030-06-30 |
| PHP 8.4 | 2nd gen | Ubuntu 22.04 | php84 | 2028-12-31 | 2029-06-30 |
| PHP 8.3 | 2nd gen | Ubuntu 22.04 | php83 | 2026-11-23 | 2027-05-23 |
| PHP 8.2 | 1st gen, 2nd gen | Ubuntu 22.04 | php82 | 2025-12-08 | 2026-06-08 |
| PHP 8.1 | 1st gen, 2nd gen | Ubuntu 18.04 | php81 | 2024-11-25 | 2025-11-25 |
| PHP 7.4 | 1st gen, 2nd gen | Ubuntu 18.04 | php74 | 2024-01-30 | 2025-01-30 |

### .NET Core

| Runtime | Generation | Environment | Runtime ID | Deprecation | Decommission |
|---|---|---|---|---|---|
| .NET Core 10 | 2nd gen | Ubuntu 24.04 | dotnet10 | 2028-11-14 | 2029-05-14 |
| .NET Core 8 | 2nd gen | Ubuntu 22.04 | dotnet8 | 2026-11-10 | 2027-05-10 |
| .NET Core 6 | 1st gen, 2nd gen | Ubuntu 22.04 | dotnet6 | 2024-11-12 | 2025-11-12 |
| .NET Core 3 | 1st gen, 2nd gen | Ubuntu 18.04 | dotnet3 | 2024-01-30 | 2025-01-30 |