Skip to content

Conversation

@yaythomas
Copy link
Member

Issue #, if available:

Description of changes:

BREAKING CHANGE: wait_for_callback submitter signature changed from submitter(callback_id: str) to submitter(callback_id: str, context: WaitForCallbackContext)

The WaitForCallbackContext provides access to a logger, enabling submitter functions to log operations consistently with other SDK operations like step and wait_for_condition.

This change aligns the wait_for_callback API with other context-aware operations in the SDK, improving consistency and extensibility.

  • Add WaitForCallbackContext type with logger field
  • Update wait_for_callback_handler to pass context to submitter
  • Update all callback tests to use new submitter signature
  • Add test coverage for context parameter validation

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

BREAKING CHANGE: wait_for_callback submitter signature changed from
submitter(callback_id: str) to submitter(callback_id: str, context:
WaitForCallbackContext)

The WaitForCallbackContext provides access to a logger, enabling
submitter functions to log operations consistently with other SDK
operations like step and wait_for_condition.

This change aligns the wait_for_callback API with other context-aware
operations in the SDK, improving consistency and extensibility.

- Add WaitForCallbackContext type with logger field
- Update wait_for_callback_handler to pass context to submitter
- Update all callback tests to use new submitter signature
- Add test coverage for context parameter validation
@yaythomas yaythomas requested a review from wangyb-A as a code owner November 28, 2025 20:15
Copy link
Contributor

@wangyb-A wangyb-A left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also need to update the examples

@yaythomas yaythomas merged commit 3338948 into main Nov 28, 2025
14 of 15 checks passed
@yaythomas yaythomas deleted the wait-for-callback-context branch November 28, 2025 20:28
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.

3 participants