Skip to content

Make Amazon SageMaker triggers inherit AWS base classes#68927

Draft
o-nikolas wants to merge 2 commits into
apache:mainfrom
aws-mwaa:onikolas/aws-base/sagemaker-triggers
Draft

Make Amazon SageMaker triggers inherit AWS base classes#68927
o-nikolas wants to merge 2 commits into
apache:mainfrom
aws-mwaa:onikolas/aws-base/sagemaker-triggers

Conversation

@o-nikolas

Copy link
Copy Markdown
Contributor

SageMakerTrigger and SageMakerPipelineTrigger now inherit AwsBaseWaiterTrigger,
so they accept and propagate the generic AWS hook parameters (region_name,
verify, botocore_config) consistently with the rest of the Amazon provider.
SageMakerPipelineTrigger keeps its per-step pipeline-progress logging via an
overridden run(), the same pattern used by GlueJobCompleteTrigger.

The SageMaker operators that defer to these triggers were updated accordingly
(waiter_delay/waiter_max_attempts parameters and the success TriggerEvent
payload).

This completes the trigger portion of the SageMaker item in the base-AWS-classes
migration initiative.

related: #35278


Was generative AI tooling used to co-author this PR?
  • Yes — Kiro (claude-opus-4.8)

Generated-by: Kiro (claude-opus-4.8) following the guidelines

SageMakerTrigger and SageMakerPipelineTrigger now inherit AwsBaseWaiterTrigger,
so they accept and propagate the generic AWS hook parameters (region_name,
verify, botocore_config) consistently with the rest of the Amazon provider,
completing the trigger portion of the SageMaker migration in apache#35278.
@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Jun 24, 2026
@o-nikolas o-nikolas marked this pull request as draft June 24, 2026 01:09
Preserve backward compatibility for SageMakerTrigger after switching to the
AwsBaseWaiterTrigger naming: poke_interval and max_attempts are still accepted
as deprecated aliases for waiter_delay and waiter_max_attempts, emitting
AirflowProviderDeprecationWarning. This keeps existing keyword callers working
and lets deferred-task triggers serialized by older versions deserialize after
upgrade.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant