-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ffi): refactor engine for streaming (#430)
* refactor: decouple evaluator and parser to support streaming Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: use channels for message passing Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: handle errors from http Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: return response from fetcher Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * feat: impl streaming Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: rm streaming file Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fix async tests Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: handle json parsing error Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: rm unneeded test Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: rm tokio from main deps Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fix sending async Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: minor cleanup Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: add some logging Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: try to fix thread lifecycle management Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: put polling in loop Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: add some debug logging Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: dont reset snapshot on error state Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: dont print error on shutdown Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: handle wait for async code to finish Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: use println for debug Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: more debug info Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: perform initial fetch on engine start Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: refactor initial fetch Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: set error in snapshot Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: test stream fetch Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: error message Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: clippyyyyyyyyy Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: rm 303 handling Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: expose fetch mode Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fix url for streaming Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fix streaming test Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: expose fetch mode to other languages Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fix java build Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: rename file cause java Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: handle stream chunk parsing; rm timeout Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fmt java Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: ruby fmt Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: fmt python Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: retry requests, ensure consistency in error handling Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: assert expected retries for fetch error Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: add more tests and documentation Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * chore: java fmt Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com> --------- Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
- Loading branch information
1 parent
1f357f8
commit 40022f7
Showing
24 changed files
with
791 additions
and
374 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ Cargo.lock | |
tmp | ||
.envrc | ||
.vscode | ||
staging | ||
staging | ||
*.h |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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.