calm-soccer-24586
01/14/2025, 11:56 AMflytectl register files \
--project flytesnacks \
--domain development \
--archive flyte-package.tgz --version asdaf908
Question two, workflow calls crash with a module import error, the project structure is as follows:average-finland-92144
01/14/2025, 2:32 PMNow I have 1830 objects, registration of this root_workflow takes 40 minutes, is there a way to speed this up?I think fast registration, and ignoring files that don't need to be packaged could help https://docs.flyte.org/en/latest/user_guide/flyte_fundamentals/registering_workflows.html#fast-registration
average-finland-92144
01/14/2025, 2:34 PMworkflow calls crash with a module import errorThe above section has some guidance to improve the chances of modules being discovered via PYTHONPATH
freezing-airport-6809
calm-soccer-24586
01/14/2025, 3:00 PMcalm-soccer-24586
01/14/2025, 3:01 PMwf_t = ImperativeWorkflow(name="root-workflow") # , failure_policy=failure_policy
node_dic = {}
for parent, child in dependencies:
if parent!=child:
if parent not in node_dic:
parent_module = importlib.import_module(f'workflows.rv_wrk.{parent}')
parent_wf=getattr(parent_module, 'wf_test')
parent_launch_plan = LaunchPlan.get_or_create(
parent_wf, parent
)
node_dic[parent] = wf_t.add_launch_plan(parent_launch_plan)
if child not in node_dic:
child_module = importlib.import_module(f'workflows.rv_wrk.{child}') #workflows.
child_wf=getattr(child_module, 'wf_test')
parent_launch_plan = LaunchPlan.get_or_create(
child_wf, child
)
node_dic[child] = wf_t.add_launch_plan(parent_launch_plan)
# child_node = child_node.with_overrides(
# name=f"b-{child}"
# )
node_dic[parent].runs_before(node_dic[child])
calm-soccer-24586
01/14/2025, 3:10 PMcalm-soccer-24586
01/14/2025, 3:44 PMfreezing-airport-6809
best-oil-18906
01/14/2025, 9:02 PMthankful-minister-83577
-v
right after the pyflyte
command to turn on verbose mode, which should print out the list of files included in any tarball that tom mentioned. also, to separate the concerns and maybe to debug, could you first run pyflyte package? that will just run the compilation step and produce the proto files which you can even inspect to see the structure of each workflow if you want to verify.calm-soccer-24586
01/15/2025, 5:49 PMcalm-soccer-24586
01/15/2025, 5:51 PM2025/01/15 16:06:50 /flyteorg/build/flyteadmin/pkg/repositories/gormimpl/workflow_repo.go:53 context canceled
[0.039ms] [rows:0] SELECT * FROM "workflows" WHERE "workflows"."project" = 'flytesnacks' AND "workflows"."domain" = 'development' AND "workflows"."name" = 'root-workflow' AND "workflows"."version" = 'lxvXAH4Gyzqv7UXF4LKgvQ' LIMIT 1
thankful-minister-83577
calm-soccer-24586
01/15/2025, 5:58 PMcalm-soccer-24586
01/15/2025, 5:59 PM