-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
AsyncEnforcer doesn't support async calls for Watcher's update function #340
Labels
enhancement
New feature or request
Comments
@techoner @Nekotoxin |
@tanasecucliciu Hi, We really need your PR. |
@tanasecucliciu can you make a PR? |
@hsluoyz Sure thing! |
leeqvip
pushed a commit
that referenced
this issue
Feb 9, 2024
github-project-automation
bot
moved this to PyCasbin Easy Tasks
in Casbin Easy Tasks for Beginners/Student Applicants
Aug 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working on a async Acess Control microservice that uses Casbin and I stumbled upon this issue on redis-watcher.
The main issue arises when the
AsyncEnforcer
needs to perform asynchronous operations after the watcher is triggered. Currently, since the call towards the watcher's update method is synchronous, it cannot directly call asynchronous functions which are often necessary in an asynchronous environment. E.g. awaitingload_policies
.pycasbin/casbin/async_internal_enforcer.py
Line 148 in e409434
I'm unsure if maybe there is a specific reason for the current implementation? I am interested in contributing to implementing this feature. Please let me know if a Pull Request for this enhancement would be welcome.
Thanks!
The text was updated successfully, but these errors were encountered: