im getting an error `zsh: segmentation fault pyt...
# prefect-community
i
im getting an error
zsh: segmentation fault  python app.py
when im trying to run a flow using
LocalDaskExecutor
using threads can someone please help
My Flow
Copy code
with Flow("local-reader", executor=LocalDaskExecutor(scheduler="threads")) as flow:
   
    directory = Parameter('directory', required=True) 

    path_list = locate_local_files(directory)
    data = local_file_reader.map(path_list)
    output = filter_empty_responses(data)
k
I think this is an out of memory thing. you can try to garbage collect more by saving out the data and reading it in the next task?
i
wrapping
flow.run()
around
if __name__ == "__main__":
solved this without doing any changes