Qwame
12/02/2021, 10:35 AMLouis Auneau
12/02/2021, 11:09 AM@repository
that is a functions that returns all your jobs. Create a new file that imports your jobs and holds this repository definition function. Finally in the workspace.yaml
configuration file, add:
load_from:
- python_file: your_repository.py
Details here.Qwame
12/02/2021, 4:28 PMa.py
and b.py
. And if all of these hold jobs, do I need a last file repository.py
that consolidates all these? And in the repository.py
, is that where I put the @repository
that returns all the jobs from the different files?max
12/02/2021, 4:33 PM__init__.py
and a module structureQwame
12/02/2021, 4:37 PMrepository.py
file but they'd be loaded automatically as I add new jobsmax
12/02/2021, 4:41 PM__init__.py
but this would be more in line with ordinary python module organization -- you will still want to define a repository in that file, which has the advantage that you can look in a single place to see all of the jobs you've defined