Edvard Kristiansen
03/01/2022, 3:05 PM@task
def run():
script....
key_location = "~/prefect/Prefect/keys/key.json"
with Flow("pipeline", executor=LocalDaskExecutor(), run_config=LocalRun(labels=["local"]), storage=Local()) as flow:
run()
I am getting error: FileNotFoundError: [Errno 2] No such file or directory:
Any ideas?Kevin Kho
Edvard Kristiansen
03/01/2022, 3:25 PMKevin Kho
Edvard Kristiansen
03/01/2022, 3:35 PMKevin Kho
.prefect
folder by default. It shouldn’t depend on the RunConfig. But you can specify the path and use stored_as_script=True
so that it doesn’t store it in the .prefect
folderEdvard Kristiansen
03/02/2022, 9:33 AMKevin Kho
flow.storage = Local(path="….",stored_as_script=True)
to point to the Python file on local and it should be the same.
I do highly recommend Github storage though