green-agency-30976
11/02/2023, 8:39 AMtall-lock-23197
green-agency-30976
11/06/2023, 10:45 AMdags/<group name>/<model name>/training.py
and it should give us workflows with name dags.<group name>.<model name>.<http://training.wf|training.wf>
tall-lock-23197
pyflyte run --remote --name <execution-name> ...
green-agency-30976
11/06/2023, 1:26 PMmy_group-my_model-v1.0.1
as the version would be for the workflow not the execution, right?tall-lock-23197
tall-lock-23197
green-agency-30976
11/06/2023, 1:31 PMmy_group-my_model
) will have different experiments (run/executions) with different input parameters (to the workflow)tall-lock-23197
green-agency-30976
11/06/2023, 1:35 PMgreen-agency-30976
11/06/2023, 1:36 PMtall-lock-23197
green-agency-30976
11/06/2023, 1:59 PMtall-lock-23197
green-agency-30976
11/07/2023, 2:03 PMtall-lock-23197
green-agency-30976
11/07/2023, 2:31 PMtall-lock-23197
green-agency-30976
11/07/2023, 2:38 PMgreen-agency-30976
11/07/2023, 2:42 PMtall-lock-23197
tall-lock-23197
green-agency-30976
11/07/2023, 2:53 PMtall-lock-23197
And trigger the launch plan programmatically with the right inputs in a small python script.You can trigger launch plans programmatically using FlyteRemote. Say you update your workflow, and there's a launch plan associated with it already, you need to reregister your launch plan with a new version.
tall-lock-23197
pyflyte register launch_plan.py
and that registered the launch plans, tasks and workflows in the workflow.py
file (the workflow is being imported from the workflow.py
file)
The workflow was modified in the workflow.py
file, and I re-registered the entities using the same command. Upon launching the workflow in the UI using the pre-defined launch plan, the updated workflow was triggered as expected.tall-lock-23197
green-agency-30976
11/08/2023, 1:17 PMgreen-agency-30976
11/08/2023, 10:48 PMgreen-agency-30976
11/08/2023, 10:49 PMtall-lock-23197
green-agency-30976
11/09/2023, 10:18 AMabcv46ptw8mxwgr5zv9r
green-agency-30976
11/09/2023, 10:19 AMgreen-agency-30976
11/09/2023, 10:20 AMabcv46ptw8mxwgr5zv9r
is not there neither the version 0.2.15green-agency-30976
11/09/2023, 10:21 AMdag.py
I can see the version 0.2.15 and the execution id abcv46ptw8mxwgr5zv9r
green-agency-30976
11/09/2023, 10:48 AMabcv46ptw8mxwgr5zv9r
it takes me back to screenshot 2 with the wrong workflow name!green-agency-30976
11/09/2023, 11:03 AM> Just to confirm, there isn’t any way to trigger a launch plan from the launch plan UI, right? You have to go to the workflow section and launch with the launch plan you wish to use, right?
Yes, launch plan is just a plan to launch a workflow. And hence, it’s indeed launching a workflow, but not a launch plan. (edited)may be a good feature request to allow executing a launch plan with its config from the launch plan UI. It’s pointing to a workflow after all 🙂 so it may be possible to work out which workflow to execute
tall-lock-23197
Interestingly enough if from 4. on the dag.py workflow I click on the execution idMoving the same launch plan from one workflow to the other isn't updating the name of the workflow on the UI, correct? Are you just modifying the workflow in the launch plan?it takes me back to screenshot 2 with the wrong workflow name!abcv46ptw8mxwgr5zv9r
tall-lock-23197
green-agency-30976
11/09/2023, 1:28 PMMoving the same launch plan from one workflow to the other isn’t updating the name of the workflow on the UI, correct? Are you just modifying the workflow in the launch plan?Indeed, I’m changing the workflow in the launch plan from workflow_1.py to workflow_2.py. Then,
pyflyte register launch_plan.py
picks up all tasks, workflow and lp and registers a new versiontall-lock-23197
green-agency-30976
11/09/2023, 1:47 PMgreen-agency-30976
11/09/2023, 1:48 PMtall-lock-23197
tall-lock-23197
green-agency-30976
11/09/2023, 1:55 PM--source
flag on pyflyte package and although it works for the python module, pyflyte doesn’t find a json I import in my workflow.py
’s code. But it works if I change the path to the json in the code so that it’s relative to where I’m running pyflyte package
from, Probs more of a python thing that pyflyte!green-agency-30976
11/09/2023, 1:55 PMwhen
!green-agency-30976
12/12/2023, 12:48 PM