Skip to content

fix(core): describe transform jobs through the session client in logs_for_transform_job - #6411

Open
AkshayShah03 wants to merge 1 commit into
aws:masterfrom
AkshayShah03:fix/transformer-session-region
Open

AkshayShah03 wants to merge 1 commit into
aws:masterfrom
AkshayShah03:fix/transformer-session-region

Conversation

@AkshayShah03

@AkshayShah03 AkshayShah03 commented Oct 9, 2026 •

Copy link
Copy Markdown

Issue #, if available: Relates to #6503

Description of changes:

Narrowed after #6509, which fixed the session used by transform(), wait(), stop() and attach(). One path was still broken: logs_for_transform_job described the job with:

TransformJob.get(transform_job_name=job_name, session=sagemaker_session).__dict__
  • TransformJob.get expects a boto3 Session, so passing the SageMaker Session fails pydantic validation (Input should be an instance of Session).
  • The resource's snake_case __dict__ doesn't have the PascalCase keys (TransformResources, TransformJobStatus) that _logs_init and _check_job_status read.

This change describes the job through sagemaker_session.sagemaker_client.describe_transform_job, as logs_for_processing_job does (#6369).

Testing:

  • New test_logs_for_transform_job_describes_with_session_client. It fails on master.
  • test_transformer.py and test_transformer_session_propagation.py: 44 passed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…_for_transform_job

logs_for_transform_job described the job with
TransformJob.get(transform_job_name=..., session=sagemaker_session).__dict__.
TransformJob.get expects a boto3 Session, so passing the SageMaker Session
failed pydantic validation ('Input should be an instance of Session'), and the
resource's snake_case __dict__ does not have the PascalCase keys
(TransformResources, TransformJobStatus) that _logs_init and
_check_job_status read.

Describe the job through sagemaker_session.sagemaker_client, as
logs_for_processing_job does (aws#6369). aws#6509 already fixed the session used
by transform()/wait()/stop()/attach(); this covers the log tailing path.
@AkshayShah03
AkshayShah03 force-pushed the fix/transformer-session-region branch from e3e56da to d6b7dad Compare November 9, 2026 03:44
@AkshayShah03 AkshayShah03 changed the title fix(core): poll, attach and log transform jobs through the session's region fix(core): describe transform jobs through the session client in logs_for_transform_job Nov 9, 2026

This branch is waiting to be deployed

1 waiting deployment
manual-approval — d6b7dad7 Waiting Nov 9, 2026 by AkshayShah03 via wait-for-approval #830
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant