Skip to content

Backfill: Scheduled trigger inputs are ignored for SELECT type, defaulting to flow-level input instead #10627

@Shuntw6096

Description

@Shuntw6096

Describe the issue

https://kestra.io/docs/workflow-components/triggers/schedule-trigger#setting-inputs-inside-of-the-schedule-trigger

id: myflow
namespace: company.team

inputs:
  - id: user
    type: SELECT
    values: ['Rick Astley', 'John']
    defaults: 'Rick Astley'

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: "Hello {{ inputs.user }}! 🚀"

triggers:
  - id: schedule
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "0 10 1 * *"
    inputs:
      user: 'John'

Trigger inputs are not correctly overriding flow inputs when backfilling.

Image Image

Environment

  • Kestra Version: 0.23.9
    Docker Compose
services:
  postgres:
    image: postgres:17.2-bookworm
    volumes:
      - ./postgres-data:/var/lib/postgresql/data # mkdir ./postgres-data in advance
    user: "${UID}:${GID}"
    environment:
      POSTGRES_DB: kestra
      POSTGRES_USER: kestra
      POSTGRES_PASSWORD: k3str4
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
      interval: 30s
      timeout: 10s
      retries: 10

  kestra:
    image: kestra/kestra:latest
    # pull_policy: always
    # Note that this setup with a root user is intended for development purpose.
    # Our base image runs without root, but the Docker Compose implementation needs root to access the Docker socket
    user: "${UID}:${GID}"
    command: server standalone
    volumes:
      - ./kestra-data:/app/storage
      # - /var/run/docker.sock:/var/run/docker.sock
      # - /tmp/kestra-wd:/tmp/kestra-wd
    environment:
      KESTRA_CONFIGURATION: |
        datasources:
          postgres:
            url: jdbc:postgresql://postgres:5432/kestra
            driverClassName: org.postgresql.Driver
            username: kestra
            password: k3str4
        kestra:
          # server:
          #   basicAuth:
          #     username: [email protected] # it must be a valid email address
          #     password: Admin1234 # it must be at least 8 characters long with uppercase letter and a number
          repository:
            type: postgres
          storage:
            type: local
            local:
              basePath: "/app/storage"
          queue:
            type: postgres
          tasks:
            tmpDir:
              path: /tmp/kestra-wd/tmp
          url: http://localhost:8080/
    ports:
      - "18080:8080"
      - "18081:8081"
    depends_on:
      postgres:
        condition: service_started

Metadata

Metadata

Labels

area/frontendNeeds frontend code changesbugSomething isn't workinggood first issueGreat issue for new contributors

Type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions