Open rareal opened 3 years ago
Hi @rareal, thank you for spotting this bug.
You're more than welcome to create a PR, preferably to this branch: https://github.com/verdimrc/sagemaker-python-sdk/tree/pr-framework-processor. This branch itself is being tracked by PR #2251 from the upstream sagemaker-python-sdk, and the code is updated much more than what's in this repo.
Do let me know.
Looks like the code in the other branch is considerably different then.
I see one issue, which is the function get_run_args, it is defined in the init
but it needs to run _pack_and_upload_code
, which would need the kms_key, but in the init
it cannot take the kms_key from run
.
Would the soluton be to pass the kms_key when instantiating FrameworkProcessor and not on run
?
The FrameworkProcessor failes twice if kms_key is not added to the class.
Happy to submit a pull request if needed. Thanks for the package, good stuff.