https://dagster.io/ logo
#ask-community
Title
# ask-community
k

kiss

05/18/2022, 8:24 AM
Hello! I have one file in workspace.yaml load_from: - python_file: repo.py what shall i do if i need a lot of py scrip jobs where os to put it?
1
a

Anoop Sharma

05/18/2022, 9:16 AM
I believe you can just add multiple
python_file
tags in the same workspace.yaml file as follows:
Copy code
load_from:
  - python_file: repo_1.py
  - python_file: repo_2.py
  - python_file: repo_3.py
k

kiss

05/18/2022, 2:55 PM
Ok, thank you it mean's 1 py script = 1 repository ?
a

Anoop Sharma

05/18/2022, 2:56 PM
Yes. I believe so.
Unless you manually define multiple repositories in a py file.
k

kiss

05/18/2022, 3:01 PM
strange.... if i have 200 py file ? manualy is pain )
a

Anoop Sharma

05/18/2022, 3:28 PM
No I mean you don't have to manually define the repositories. Just mentioning the file in the workspace.yaml should work fine. I was just referring to a scenario where if you manually define multiple repositories in a single py file, in that case, 1 py script > 1 repository.
j

johann

05/18/2022, 3:42 PM
Another option would be to put your various scripts inside one python package and load from that https://docs.dagster.io/concepts/repositories-workspaces/workspaces#loading-via-python-package