You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Middleware Support for OperationHandlers (#33)
* Add abstract base class and a no op implementation to enable task cancellation in operation handlers
* fix some linter errors
* Some PR feedback. Up min python version to 3.10
* Update some docs to more clearly highlight expected behavior of operation handlers and the potential race condition if but wait_until_.. and is_cancelled are used at the same time
* Simple logging interceptor working with an InterceptedOperationHandler concept
* Update test to confirm interceptors are applied in the order provided. Add test to confirm interceptors work for sync operation handlers
* Do some renaming. Add some doc strings. remove type aliases that wound up not being very useful. Update sync test to force use of the executor.
* Remove request_deadline as that's part of a different PR
* remove some unused imports
* Use public export in tests
* Fix some linter errors
* use cancellation in tests after rebasing to support new python
* fix docstring errors
* rename interceptor to middleware. Expose operation context to middleware
* fix formatting and linter errors
* Remove return repetitive types in OperationHandler.start. Make OperationHandlerMiddleware.intercept an abstract method.
* Move deploy-docs to it's own workflow that runs on push to main
* Fix workflow name in deploy-docs
* export LazyValueT and Serializer from _serializer.py
* remove the work 'docs' from the 'lint-test' job
* Rename AwaitableOperationHandler to MiddlewareSafeOperationHandler
* Run formatter
* remove generic args in MiddlewareSafeOperationHandler since it by definition, must always be OperationHandler[Any,Any]
* Finish removing generic args from MiddlewareSafeOperationHandler
* Update old reference from 'interceptors' -> 'middleware'
* Remove _all_ reference to interceptors
0 commit comments