generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: enhance wait handler with running operations awareness and helper utilities #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
Major improvements to wait handler functionality: ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement complex waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire - Polling-based implementation with 100ms intervals ## Test Coverage: - Comprehensive unit tests for wait handler (88% statement coverage) - Integration tests for parallel execution scenarios - Helper utilities with 100% test coverage - Full coverage for durable-context hasRunningOperations function ## Architecture: - Clean design: wait-handler → waitBeforeContinue → Promise.race - Proper separation of concerns with reusable components - Simplified wait handler logic with declarative API - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation - Inlined logic for better maintainability
yaythomas
approved these changes
Sep 6, 2025
ParidelPooya
added a commit
that referenced
this pull request
Oct 10, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Oct 12, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Oct 24, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Oct 26, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Nov 2, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Nov 6, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Nov 6, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Nov 6, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
ParidelPooya
added a commit
that referenced
this pull request
Nov 7, 2025
…er utilities (#12) feat: enhance wait handler with running operations awareness and helper utilities ## Core Features: - Add running operations awareness to prevent premature termination - Wait handler now checks if other operations are running before terminating - Implement waiting logic for parallel execution scenarios ## Helper Utilities: - Create waitBeforeContinue() - high-level domain-specific helper - Support timer expiry, operations completion, and status change detection - Internal checkpoint.force() handling when timers expire ## Test Coverage: - Added unit tests for wait handler - Tests for parallel execution scenarios ## Architecture: - Clean layered design: wait-handler → waitBeforeContinue - Proper separation of concerns and reusable components - Support for real-world scenarios like ctx.parallel([wait, step]) ## Technical Details: - Polling-based implementation with 100ms intervals - Promise.race coordination for multiple async conditions - Automatic API refresh via checkpoint.force() on timer expiry - Loop-back approach for clean condition re-evaluation
Sign up for free
to 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.
feat: enhance wait handler with running operations awareness and helper utilities