-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache
EndpointConfig
session (#12886)
* cache session property of endpoint config * fix session is closed runtime error * ref: remove async manager for session * revert cached_property, implement sanic listener + lru cache * trigger CI * pin ddtrace in CI workflow * separate pip install commands for ddtrace per OS * update flaky tests jobs; remove poetry command * address review suggestions * make failing unit test async * add changelog, add closing of connection pools to after_server_stop listener --------- Co-authored-by: souvik ghosh <[email protected]>
- Loading branch information
Showing
7 changed files
with
164 additions
and
83 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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Cache `EndpointConfig` session object using `cached_property` decorator instead of recreating this object on every request. | ||
Initialize these connection pools for action server and model server endpoints as part of the Sanic `after_server_start` listener. | ||
Also close connection pools during Sanic `after_server_stop` listener. |
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
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
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