Garret Cook
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?Haytham Abuelfutuh
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?Garret Cook
01/29/2024, 7:59 PMHaytham Abuelfutuh
Kevin Su
01/29/2024, 8:33 PMGarret Cook
01/29/2024, 8:34 PMYee
Yee
Garret Cook
01/29/2024, 8:41 PMYee
Garret Cook
01/29/2024, 8:45 PMYee
Yee
Yee
Garret Cook
01/29/2024, 8:47 PMGarret Cook
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": []})
Garret Cook
01/29/2024, 8:49 PMYee
Garret Cook
01/30/2024, 1:50 AM