helpful-van-10149
06/28/2024, 6:57 PMthankful-minister-83577
helpful-van-10149
06/28/2024, 8:25 PMthankful-minister-83577
helpful-van-10149
06/28/2024, 8:26 PMthankful-minister-83577
thankful-minister-83577
helpful-van-10149
06/28/2024, 8:29 PMflytekit.current_context().execution_id
And get version by
execution = remote.fetch_execution(
project=execution_id.project, domain=execution_id.domain, name=execution_id.name
)
return execution.spec.launch_plan.version
But it is a not very good practice to allow flyte node to access flyte admin proxy...helpful-van-10149
06/28/2024, 8:30 PMthankful-minister-83577
helpful-van-10149
06/28/2024, 8:31 PMalso what workflow?I am not sure what impact would be but in theory, the version should be the same? (workflow vs subworkflow)
thankful-minister-83577
helpful-van-10149
06/28/2024, 8:31 PMhelpful-van-10149
06/28/2024, 8:32 PMhelpful-van-10149
06/28/2024, 8:33 PMlaunch_plan {
resource_type: LAUNCH_PLAN
project: "ml-exploration"
domain: "adhoc"
name: "src.python.flyte.ml_exploration.reproducible_example.main.reproducible_example"
version: "felixm-PYTHON-527-fix-flyte-registration-3190ad1272a7"
}
{'_stats': <flytekit.core.mock_stats.MockStats at 0x7fd6d470ad00>,
'_execution_date': datetime.datetime(2024, 6, 28, 19, 34, 24, 45322),
'_working_directory': '/tmp/flytef4ztieh4/user_space',
'_execution_id': project: "local"
domain: "local"
name: "local",
'_logging': <Logger flytekit.user_space (INFO)>,
'_raw_output_prefix': '/tmp/flyte-bawvan6b/raw',
'_attrs': {},
'_secrets_manager': <flytekit.core.context_manager.SecretsManager at 0x7fd6d470a1c0>,
'_checkpoint': None,
'_decks': [],
'_task_id': TASK:local:local:local:local}
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
helpful-van-10149
06/28/2024, 9:06 PMhelpful-van-10149
06/28/2024, 9:42 PMin a live run, all these should be thereThis works! Thank you Yee!
helpful-van-10149
06/29/2024, 3:04 AMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
helpful-van-10149
07/01/2024, 3:44 PMthankful-minister-83577
thankful-minister-83577
helpful-van-10149
07/04/2024, 7:21 PM