Open svpino opened 4 years ago
@svpino
Thank you for using Amazon SageMaker.
You're right. The _current_job_name
of processor instances has been marked internal and, if job_name
is not specified on invocation of run
, it is generated on run invocation.
You cite one current work-around: access the internal attribute _current_job_name
.
Another method that may work for you is to specify the job_name
yourself and pass that into the run
method. In that case, _current_job_name
will be set to the value you pass in, as a no-op. You could then use this name to do further work such as describing the processing job.
We are always re-evaluating our backlog of features based on customer requests, so we appreciate the feedback on this feature.
Let us know if there is anything else we can be an assistance of.
Thanks for the response!
Any updates on this? This is very inconvenient.
I found a workaround, but we should expose a method:
processor.latest_job.job_name
Out[5]: 'marketing-sm-1651701978-3373-2022-05-04-22-06-18-675'
processor
Out[6]: <sagemaker.processing.Processor at 0x126b36550>
Describe the feature you'd like When creating a
ScriptProcessor
job, there's currently no way to obtain the job name generated for it. This name is generated when therun()
function is called, butrun()
doesn't return anything.Also, there's no public property exposed by
ScriptProcessor
to obtain this name.How would this feature be used? Please describe.
Here is an example on how this feature could be implemented:
Describe alternatives you've considered
As of right now, the only solution to this is by accessing
_current_job_name()
onScriptProcessor
. This is not ideal because_current_job_name()
is supposed to be internal only.