Andrew Achkar
07/28/2022, 5:54 PMSagemakerBuiltinAlgorithmsTask
and I would like to retrieve the TrainingJobName
, which the backend plugin has access to.Samhita Alla
flytekit.current_context()
within a task to get some of the metadata. You can find all the acceptable parameters here.
I believe the TrainingJobName
you’re referring to is the pod name pertaining to a task. @Kevin Su, can we retrieve this at the Python end?Kevin Su
07/29/2022, 6:16 AMAndrew Achkar
07/29/2022, 9:21 PMflytectl get execution --project myproject -d development abcdefhv5l8d8bgdpxcb -o yaml
but that requires already knowing most of the job name, the actual job name shows up like abcdefhv5l8d8bgdpxcb-n1-0
Interestingly, flyte console seems to know it and provides us a nice link right to sagemaker training job console.flytectl get execution
doesn’t include the actual TrainingJobName
. I don’t see the custom_info of the TaskExecutionClosure. In the python representation too I do not see a custom_info attribute: https://github.com/flyteorg/flytekit/blob/master/flytekit/models/admin/task_execution.py#L8Samhita Alla
current_context().execution_id
and current_context().task_id
, but this doesn’t uniquely identify two task executions within the same workflow.Andrew Achkar
08/03/2022, 2:00 PM