Gauthier Castro
11/02/2023, 8:39 AMSamhita Alla
Gauthier Castro
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>
Samhita Alla
pyflyte run --remote --name <execution-name> ...
Gauthier Castro
11/06/2023, 1:26 PMmy_group-my_model-v1.0.1
as the version would be for the workflow not the execution, right?Samhita Alla
Gauthier Castro
11/06/2023, 1:31 PMmy_group-my_model
) will have different experiments (run/executions) with different input parameters (to the workflow)Samhita Alla
Gauthier Castro
11/06/2023, 1:35 PMSamhita Alla
Gauthier Castro
11/06/2023, 1:59 PMSamhita Alla
Gauthier Castro
11/07/2023, 2:03 PMSamhita Alla
Gauthier Castro
11/07/2023, 2:31 PMSamhita Alla
Gauthier Castro
11/07/2023, 2:38 PMSamhita Alla
Gauthier Castro
11/07/2023, 2:53 PMSamhita Alla
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.
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.Gauthier Castro
11/08/2023, 1:17 PMSamhita Alla
Gauthier Castro
11/09/2023, 10:18 AMabcv46ptw8mxwgr5zv9r
abcv46ptw8mxwgr5zv9r
is not there neither the version 0.2.15dag.py
I can see the version 0.2.15 and the execution id abcv46ptw8mxwgr5zv9r
abcv46ptw8mxwgr5zv9r
it takes me back to screenshot 2 with the wrong workflow name!> 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
Samhita Alla
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
Gauthier Castro
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 versionSamhita Alla
Gauthier Castro
11/09/2023, 1:47 PMSamhita Alla
Gauthier Castro
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!when
!