I'm new to flyte and am planning to migrate code for a few different projects onto flyte. There are a few different workflows, but i want them to share some tasks. Is there a way to set up my flyte project to make this possible? I'm planning to make a common/ folder for the shared tasks, and then project1/, project2/, etc. I'm assuming that the entire directory would be packaged and registered when I want to execute a run. Which folders would I run pyflyte init and pyflyte create in?
🚀 3
f
freezing-airport-6809
03/14/2024, 12:13 AM
you do not need to run pyflyte init if you dont want to
freezing-airport-6809
03/14/2024, 12:16 AM
if you want multiple workflows to share tasks and the code to be co-located then
Thats super helpful thanks! Is pyflyte create a required command? Also to use a reference_task, I would just write the function definition and leave the function itself empty?
f
freezing-airport-6809
03/14/2024, 1:26 AM
Yup
freezing-airport-6809
03/14/2024, 1:27 AM
You can also use flyteremote.fetch to retrieve the entity and not even create a rep
👍 1
freezing-airport-6809
03/14/2024, 1:27 AM
Requirements though is that you will need network access