Skip to main content
Recommeded Upgrade

Deprecation of Python 3.7 on Cognite Functions

Related products:Functions

Forum|alt.badge.img
As of September 1st, 2023, it will no longer be possible to create Cognite Functions running on Python 3.7 on either Azure or GCP projects. Cognite Functions already running on Python 3.7 will continue to work, but since Microsoft will no longer provide updates or support for Python 3.7 after September 30th, we advise users having Cognite Functions running on Python 3.7 to redeploy these functions to Python 3.8 (default) or later. This is done by deleting and recreating the functions in question, as exemplified in the snippet below using the Python SDK.
# Delete the existing function
client.functions.delete(id=1234)

# Recreate function, optionally with a version higher than the default of 3.8.
# Assuming here that the function is created from a folder
client.functions.create(
    name="my-function",
    external_id="my-function",
    folder="path/to/source/code",
    runtime="py38"
)

0 replies

Be the first to reply!

Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings