rectalogic
07/21/2022, 3:03 PM__file__
is not defined when prefect cloud runs the flow. Any idea what the issue is?__file__
is not useable with GitHub storage? https://github.com/PrefectHQ/prefect/issues/3529
What about other local assets that the flow needs to load that are in the github repo (e.g. local .sql files). Will they even be accessible to the flow, is prefect not checking out the repo when it runs the flow?Kevin Kho
07/21/2022, 3:52 PMrectalogic
07/21/2022, 4:10 PMGITHUB_ACCESS_TOKEN
PAT env var? or does it have to use a prefect secret or ssh privkey?Kevin Kho
07/21/2022, 4:14 PMrectalogic
07/21/2022, 8:03 PM__file__
is correct e.g. /tmp/tmpxy6wy7bw/cureatr/flows/...
- but we get FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpxy6wy7bw/cureatr/flows/patient_funnel/patient_funnel.sql'
when trying to open a file relative to __file__
- that path seems correct. Do we have to do something specific to make Git storage clone the entire repo?Kevin Kho
07/21/2022, 8:07 PMrectalogic
07/21/2022, 8:07 PMKevin Kho
07/21/2022, 8:11 PM