Skip to content

Conversation

@yaythomas
Copy link
Member

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

Issue #, if available:

Description of changes:

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 December 1, 2025 20:28
@yaythomas yaythomas closed this Dec 1, 2025
@yaythomas yaythomas deleted the cherry-pick-submitter branch December 1, 2025 20:43
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