fierce-match-73373
01/29/2024, 6:24 PMfrom flytekit import LaunchPlan
flyte_workflow = remote.fetch_workflow(
name="my_workflow", version="v1", project="flytesnacks", domain="development"
)
launch_plan = LaunchPlan.get_or_create(name="my_launch_plan", workflow=flyte_workflow)
And I cannot get it to work. I get this error when I try to pyflyte register the code:
AttributeError: 'NoneType' object has no attribute 'inputs'
I believe it may be described here: https://github.com/flyteorg/flytekit/pull/1252
Should this work? I assume so, because it is in the examples? Can anyone help clarify what the issue might be?high-park-82026
flyte_workflow = remote.fetch_workflow(
name="my_workflow", version="v1", project="flytesnacks", domain="development"
)
It should be:
flyte_workflow = remote.fetch_workflow(
name="my_remote_wf", version="v1", project="flytesnacks", domain="development"
)
It should match the name of the workflow you are trying to fetch. does that help?fierce-match-73373
01/29/2024, 7:59 PMhigh-park-82026
glamorous-carpet-83516
01/29/2024, 8:33 PMfierce-match-73373
01/29/2024, 8:34 PMthankful-minister-83577
thankful-minister-83577
fierce-match-73373
01/29/2024, 8:41 PMthankful-minister-83577
fierce-match-73373
01/29/2024, 8:45 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
fierce-match-73373
01/29/2024, 8:47 PMfierce-match-73373
01/29/2024, 8:49 PMsend_emails_via_o365_lp = remote.fetch_launch_plan(name="workflows.send_email_via_o365.send_emails_via_o365")
execution = remote.execute(send_emails_via_o365_lp, inputs={"to":[], "bcc": [], "mime_body": []})
fierce-match-73373
01/29/2024, 8:49 PMthankful-minister-83577
fierce-match-73373
01/30/2024, 1:50 AM