Closed robbert-harms closed 2 years ago
Thanks for reporting this! Would you like to try making a PR to fix this?
Maybe in the future, currently very busy trying to get work done. The problem is simple enough to just fix it next time you dive into the code, no?
Yep, just wanted to see if you were interested first. Thanks again for the report!
Of course, happy to help. Many thanks for making this package in the first place.
Prefect 2.0 supports subflows which is a great new addition. There is a bug when using nested flows with the same RayTaskManager(), in essence it crashes complaining about calling ray.init() twice.
It would be nice if this workcase would be supported since it would allow combining different parallel flows.
To reproduce, use:
The error is:
I solved the problem in my private package by using a modified RayTaskRunner. In particular, I modified the
_start_function
to start with:Note the
ray.is_initialized
call.