https://prefect.io logo
Title
m

Minakshi

03/04/2021, 9:39 PM
Hi team, I am planning to store a config file on github using prefect github storage https://docs.prefect.io/api/latest/storage.html#github along with the flow file as below. The my_flow.py will refer to config params from the config file. I was wondering if the flow registers and runs will be able to handle this behavior and automatic updates to config file changes?
flows/
        my_flow.py
        config.json
z

Zanie

03/04/2021, 10:18 PM
Hi @Minakshi -- Github storage will currently only apply to your
my_flow.py
file and cannot load otherfiles alongside.
Feel free to open a feature request at https://github.com/PrefectHQ/prefect/issues
m

Minakshi

03/04/2021, 10:50 PM
got it thanks!
z

Zanie

03/04/2021, 10:51 PM
One option is to have a task at the start of your flow download that config file and read the settings manually.
m

Minakshi

03/04/2021, 10:52 PM
yeah, I was thinking of the same. to download the config file and have it update on a cache variable