Uh oh!
There was an error while loading. Please reload this page.
Use the operator's AWS settings for deferred SageMaker tasks - #71857
Merged
vincbeck merged 1 commit intoAug 21, 2026
Merged
Conversation
SageMaker operators inherit region_name, verify and botocore_config from AwsBaseOperator, but did not hand them to the trigger they defer to. The deferred half of the task then reached AWS with different settings than the operator itself, so an explicitly requested region, a custom botocore config or an explicit SSL verify setting stopped applying once the task was handed to the triggerer.
vincbeck
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SageMakerBaseOperatorextendsAwsBaseOperator, so every SageMaker operator carries theregion_name,verifyandbotocore_configthe user configured. When these operators defer, they build aSageMakerTrigger/SageMakerPipelineTriggerand pass onlyaws_conn_id, so the trigger builds its hook without those settings.The result is that the deferred half of the task talks to AWS differently from the operator: a job submitted in an explicitly requested region is then polled in the connection's default region, a custom
botocore_config(timeouts, retry policy) is ignored while waiting, and an explicitverifyfor SSL verification is dropped once the task is handed to the triggerer.Both triggers already accept all three arguments and forward them to
AwsBaseWaiterTrigger, so only the operators needed changing.This continues the same cleanup as #52904 (Glue), #67508 (Batch), #67876 (Redshift) and #71646 (Neptune).
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines