merlin
01/21/2021, 7:50 PMflow.storage
assignment in the file based storage discussion:
flow.storage = GitHub(
repo="org/repo", # name of repo
path="flows/my_flow.py", # location of flow
flows/my_flow001.py
file and so on, and every one has to include its own file path location. Makes it very hard to reorganize flow file folders, and seems like a redundancy that will collect errors.Zanie
01/21/2021, 7:56 PMGitHub
was instantiated then figure out where the root of the git repo is then construct a relative path — all of which is quite brittle). Since we’re not storing any of your code, we need to know where the flow lives and this information is just put into the flow metadata so we know where to pull the flow from when you want to run it.get_flow_path_in_repo
that you pass __file__
and calculate the relative path since you know what the base path of your git repo is.merlin
01/21/2021, 8:07 PMZanie
01/21/2021, 8:38 PM