Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore how to fill the default input value in Backfills by the inout value set within a schedule #6458

Open
anna-geller opened this issue Dec 13, 2024 · 0 comments
Labels
area/frontend Needs frontend code changes enhancement New feature or request

Comments

@anna-geller
Copy link
Member

anna-geller commented Dec 13, 2024

Feature description

Repro:

id: backfill_test
namespace: company.team

inputs:
  - id: taxi
    type: SELECT
    displayName: Select taxi type
    values: [yellow, green]
    defaults: green

variables:
  file: yellow_tripdata_{{trigger.date ?? execution.startDate | date("yyyy-MM")}}.parquet

tasks:
  - id: label
    type: io.kestra.plugin.core.execution.Labels
    labels:
      file: "{{render(vars.file)}}"
      
  - id: log
    type: io.kestra.plugin.core.log.Log
    message: file https://d37ci6vzurychx.cloudfront.net/trip-data/{{render(vars.file)}}

triggers:
  - id: green_schedule
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "0 9 1 * *"
    inputs:
      taxi: green

  - id: yellow_schedule
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "0 17 1 * *"
    inputs:
      taxi: yellow

For now, backfill for the yellow_schedule will have the default value to be green - would be cool to make it "yellow" as defined by the trigger input.

image

@anna-geller anna-geller added area/backend Needs backend code changes enhancement New feature or request area/frontend Needs frontend code changes labels Dec 13, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Dec 13, 2024
@anna-geller anna-geller removed the area/backend Needs backend code changes label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Needs frontend code changes enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant