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.66k stars 1.08k forks source link

Dedicated Files Directory per Flow #4951

Closed MarcoGriep88 closed 1 month ago

MarcoGriep88 commented 1 month ago

Feature description

Hi,

i just started with Kestra and found out, that the "Files" Section of Flows is shared across all flows and i unfortutaly lost some work because i did override the main.py file. I would be awsome to have separte files for each flow.

Best Regards Marco

anna-geller commented 1 month ago

Hi, sorry to hear about the overridden files. Namespace Files are files tied to a given namespace. You can think of Namespace Files as the equivalent of a project in your local IDE or a copy of your Git repository. Namespace Files are intended to hold code like Python files, R or Node.js scripts, SQL queries, dbt or Terraform projects, and many more.

To tie some files only to a specific flow, you can have a dedicated namespace for that flow e.g. company.team.myproject where myproject is what your flow does.

I understand this may not be clear at first, so let me rephrase the message shown in the UI.

MarcoGriep88 commented 1 month ago

Hi Anna,

thanks alot. No Problem, it wasnt a big script. Thanks alot for the tip with namespace files, that helps me further :)