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

outputFiles drops folder structure #6704

Open
guslipkin opened this issue Jan 9, 2025 · 0 comments
Open

outputFiles drops folder structure #6704

guslipkin opened this issue Jan 9, 2025 · 0 comments
Labels
area/backend Needs backend code changes

Comments

@guslipkin
Copy link

Describe the issue

If I have a task that creates a file with a specific folder structure, such as an Arrow dataset, then the intermediate folder structure is dropped and only the file itself is made available in later tasks. Sometimes that folder structure is very important and it should be kept.

A discussion about this in the Kestra Slack can be found here: https://kestra-io.slack.com/archives/C03FQKXRK3K/p1736048596068889

For example, here we save a file to tmp/cyl={{taskrun.value}}/part-0.parquet. However, in Kestra, that path becomes kestra:///path/random_folder_names/random-prefix-part0.parquet.

id: myflow-copy
namespace: company.team

tasks:
  - id: query_parallel
    type: io.kestra.plugin.core.flow.ForEach
    values: "[4,6,8]"
    concurrencyLimit: 0
    tasks:
      - id: query
        type: io.kestra.plugin.scripts.shell.Commands
        taskRunner:
          type: io.kestra.plugin.scripts.runner.docker.Docker
        namespaceFiles:
          enabled: true
        commands:
          - mkdir -p tmp/cyl={{taskrun.value}}
          - touch tmp/cyl={{taskrun.value}}/part-0.parquet
        outputFiles:
          - "tmp/**/*.parquet"

  - id: log_combine_results
    type: io.kestra.plugin.core.log.Log
    message: "{{ outputs.query }}"

Environment

  • Kestra Version: open source
@guslipkin guslipkin added area/backend Needs backend code changes area/frontend Needs frontend code changes bug Something isn't working labels Jan 9, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Issues Jan 9, 2025
@MilosPaunovic MilosPaunovic removed the area/frontend Needs frontend code changes label Jan 10, 2025
@Ben8t Ben8t removed the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes
Projects
Status: Backlog
Development

No branches or pull requests

3 participants