kestra-io / plugin-scripts

https://kestra.io/plugins/
Apache License 2.0
9 stars 9 forks source link

Docker runner doesn't correctly output values in Script tasks #112

Closed anna-geller closed 8 months ago

anna-geller commented 8 months ago

Describe the issue

reproducer:

id: test_send_param
namespace: tests
tasks:
  - id: task1
    type: io.kestra.plugin.scripts.python.Script
    runner: DOCKER
    beforeCommands:
      - pip install kestra
    script: |
      from kestra import Kestra

      print("1234\n\n")

      Kestra.outputs({'secrets': "test string"})
  - id: task2
    type: io.kestra.core.tasks.log.Log
    message: "{{ outputs.task1.vars.secrets }}"

Environment

tchiotludo commented 8 months ago

relate to https://github.com/kestra-io/plugin-scripts/issues/52