thankful-dress-89577
07/28/2022, 5:54 PMSagemakerBuiltinAlgorithmsTask
and I would like to retrieve the TrainingJobName
, which the backend plugin has access to.tall-lock-23197
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. @glamorous-carpet-83516, can we retrieve this at the Python end?glamorous-carpet-83516
07/29/2022, 6:16 AMthankful-dress-89577
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.thankful-dress-89577
07/29/2022, 11:21 PMflytectl 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#L8thankful-dress-89577
08/02/2022, 7:46 PMtall-lock-23197
current_context().execution_id
and current_context().task_id
, but this doesn’t uniquely identify two task executions within the same workflow.thankful-dress-89577
08/03/2022, 2:00 PM