You are viewing the docs for v1.3, which is not the latest release.
View latest

Default Docker Image for Python Script Tasks Updated to 3.13-slim

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

Python script tasks now use official python:3-13-slim image

Kestra previously used a custom ghcr.io/kestra-io/kestrapy:latest image containing kestra and amazon-ion pip packages. The tasks now use the official python:3-13-slim image by default.

To maintain the previous behavior, add those packages using the dependencies property and they will be installed at runtime (and cached):

yamlid: python_demo
namespace: company.team

tasks:
  - id: python
    type: io.kestra.plugin.scripts.python.Script
    dependencies:
      - kestra
      - amazon-ion
      - requests
    script: |
      from kestra import Kestra
      import requests

      response = requests.get('https://kestra.io')
      print(response.status_code)

      Kestra.outputs({'status': response.status_code, 'text': response.text})