-
Notifications
You must be signed in to change notification settings - Fork 100
Add shutdown API #47
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
Add shutdown API #47
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a78439e
Creating new UT, want to dedupe next
Sushisource 79495e6
Dedupe core response setup
Sushisource 070f863
Response batch control
Sushisource ab685cc
Saving here while waiting for some feedback
Sushisource 72327b9
Replay test works. Just need to do a bit of cleanup
Sushisource a29489e
Fix task token stuff
Sushisource 4bf1703
Some refactoring to eliminate invalid states in workflow representation
Sushisource fed36fb
Make parallel timer integ test actually test two timers
Sushisource 28a45bd
Merge branch 'master' into more-tests
Sushisource 121977a
Clippy lints
Sushisource c03b304
Fix a todo
Sushisource 7300cd6
Clean up uggo todos, it's clear we want to reduce test verbosity
Sushisource f722f3e
Fix merge problem in integ tests
Sushisource d59c394
Use separate task queues to enable running integ tests in parallel
Sushisource 71f42fc
Add shutdown API and flag
Sushisource 6523a22
Add test, update docs. Closing connection is up to lang.
Sushisource 940aad0
Merge remote-tracking branch 'upstream/master' into shutdown-api
Sushisource 6fd52a4
Merge branch 'master' into shutdown-api
Sushisource 282751e
Fix merge
Sushisource 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Java we have two ways to shutdown: shutdown and shutdown now. The former is a clean shutdown and the latter is an immediate shutdown without waiting for tasks to complete.
There is also
awaitTerminationthat allows waiting for shutdown for a specified timeout.I think we need to support all the above features. But I'm not saying the API should be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mfateev Not sure either of those actually belong in core. Lang SDK can decide all by itself if it wants to exit abruptly (it can just terminate the process) -- same with the timeout. If it has not polled core enough to drain the queue completely, it can know that and decide to terminate then as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna merge this so I can use it in some of the existing PRs, but we can definitely come back to this if needed.