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.
t
thankful-minister-83577
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
c
creamy-knife-86303
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?
t
tall-lock-23197
02/27/2023, 9:37 AM
You can run
pyflyte register
command once for every parent folder.
c
creamy-knife-86303
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?
t
tall-lock-23197
02/28/2023, 4:35 AM
I assume you're importing tasks from the
tasks
directory in your
workflows
directory?
c
creamy-knife-86303
03/01/2023, 10:30 AM
Yes exactly
t
tall-lock-23197
03/02/2023, 4:26 AM
If workflows is dependent on tasks directory, you'll need to register all of them at a time. @thankful-minister-83577, what's the best practice to register in this case?