https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Aswanth Krishnan

02/23/2023, 6:59 PM
Hello all, I have a pretty deep repository with multiple tasks and workflows. When I am registering the entire repository with
pyflyte register
, it is taking up a lot of RAM ,sometimes crashing and is pretty slow. Is this expected behaviour. Also what is some best practices for registering such repository.
y

Yee

02/23/2023, 8:46 PM
you should be able to split it up pretty easily. is that an option? (like multiple commands, each with a different parent folder) or do they import from each other internally anyways
a

Aswanth Krishnan

02/24/2023, 3:20 AM
I have saperated my tasks and workflows into saperate folders. Is it possible to register tasks and workflows saperately?
s

Samhita Alla

02/27/2023, 9:37 AM
You can run
pyflyte register
command once for every parent folder.
a

Aswanth Krishnan

02/27/2023, 9:31 PM
so in my setup i have directories
/tasks
containing all the tasks and
/workflows
containing workflows. will this work in this case?
s

Samhita Alla

02/28/2023, 4:35 AM
I assume you're importing tasks from the
tasks
directory in your
workflows
directory?
a

Aswanth Krishnan

03/01/2023, 10:30 AM
Yes exactly
s

Samhita Alla

03/02/2023, 4:26 AM
If workflows is dependent on tasks directory, you'll need to register all of them at a time. @Yee, what's the best practice to register in this case?