kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
12.98k stars 1.13k forks source link

Expression in onResume not working for pause flow #5805

Closed stumpf84 closed 1 week ago

stumpf84 commented 1 week ago

Describe the issue

Using an expression for a SELECT input in onResume in a Pause flow does not show items.

Here is a sample

id: inputIssue
namespace: test

inputs:

  - id: hosts
    type: ARRAY
    itemType: STRING
    required: true
    defaults: [ "host1", "host2", "host3" ]

tasks:

  - id: dbg
    type: io.kestra.plugin.core.log.Log
    message: "{{ inputs.hosts }}"

  - id: select_host
    type: io.kestra.plugin.core.flow.Pause
    onResume:
      - id: selected_host
        type: SELECT
        expression: "{{ inputs.hosts }}"
        required: true

Expected

Resuming shows SELECT input containing host1-3

Actual

Resuming shows SELECT input 'No data'

Environment

Ben8t commented 1 week ago

hello @stumpf84

This is seems to work on my side (on kestra:develop, might double check on 0.19.9). Can you share a screenshot of this "no data" please ?

Screenshot 2024-11-08 at 10 31 55
stumpf84 commented 1 week ago

Hello @Ben8t, here is the screenshot.

image

Running as docker-compose.

Ben8t commented 1 week ago

Indeed, I'm able to reproduce on 0.19.9 , however seems to be fixed on develop already. If you have the opportunity you can pull this version or wait for next release.