-
Notifications
You must be signed in to change notification settings - Fork 104
New API to wait for handler executions to complete and warnings on unfinished handler executions #556
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
Merged
New API to wait for handler executions to complete and warnings on unfinished handler executions #556
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
ed5bd1a
Add failing test
dandavison f675216
Refactor test
dandavison c2a1961
Implement warning on unfinished signals and updates
dandavison 8945ea6
Implement all_handlers_finished
dandavison 8a5f432
Test waiting for all_handlers_finished
dandavison 8a1c7e6
Run in same worker
dandavison 8eef8a6
Refactor
dandavison ee4fe48
Refactor test
dandavison 4c6bb27
Store policy with in-progress job
dandavison 916cd72
Add new parameter to signal and update decorators
dandavison 9c34eae
Store (job, defn)
dandavison 6feed46
Format warning messages
dandavison e024ef2
Improve test
dandavison 2f96acd
Clean up warning implementation
dandavison 43387e4
s/finished/complete/
dandavison 359ce60
Revert "s/finished/complete/"
dandavison bb2bf5c
Wrap signal handling without introducing new yield point
dandavison fd1a269
List default value first in enum
dandavison e218fe2
s/IntEnum/Enum/
dandavison 866b9be
Maintain alphabetical method order
dandavison 7d13e1d
Simplify overloads
dandavison ec318ae
Abbreviate decorator argument
dandavison 8e1c30e
Drive-by removal of unused imports
dandavison 1b42175
Use custom warnings in test
dandavison 4acc28b
Convert unfinished handler warnings to errors during test suite
dandavison 48fb622
Satisfy pydocstyle linter
dandavison 67e5611
Use unfinished_policy=HandlerUnfinishedPolicy.XXX
dandavison f0b1739
Test that unfinished handlers cause exceptions in the test suite
dandavison 572cf9a
Allow use of generics with asyncio.Future in Python 3.8
dandavison 04373d8
Move warning classes to temporalio.workflow
dandavison b1ee630
Pluralize warning names and fix docstrings
dandavison 3e2181f
Turn enum comments into docstrings
dandavison fcabe21
Use default timeout and interval
dandavison ea63920
Clean up imports
dandavison 7063c17
Edit warning messages
dandavison 8162e31
Refactor test
dandavison 15ed853
Test cancellation
dandavison 3f0b11c
Bug fix: include cancellation command in set of "completion" commands
dandavison d6ca246
Add coverage for workflow failure
dandavison 5795269
Lint fixes
dandavison f769bc0
Skip update tests under Java time-skipping server
dandavison cf5b158
Remove unused imports
dandavison caed0ff
Try increasing timeout
dandavison 97fc45f
Remove spurious asyncio.gather calls in test
dandavison b9e07cd
Skip test due to putative Java test server bug
dandavison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.