-
Notifications
You must be signed in to change notification settings - Fork 8
Update call back func #24
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
Comments
@techoner @Nekotoxin |
@pradeepranwa1 can you provide more details? |
I am using mutiple gunicorn workers INSTALLED_APPS = [ watcher = PostgresqlWatcher(host=BANK_CONNECT_APIS_PG_HOST_URL, port=BANK_CONNECT_APIS_PG_PORT, using this setup django migration and casbin is working but watcher is not working for watcher listen/notify service is created in db on any change in casbin policy worker notifies db and other workers are polling that change, but i observed a single worker(single instance of enforcer) fetches all triggers and apart from that set_update_callback is never called |
I updated the watcher code and added enforcer.load_policy() as mentioned below, but getting
traces
|
@trbtm can you take a look at this? |
I looked into the MR and made some comments there. Generally there are several issues right now (some of which were already mentioned by @pradeepranwa1)
I am willing to work on fixing all of these issues. @hsluoyz any objects to using pytest instead of stdlib unittest? |
#29 PR for the points mentioned. |
Update call back function which is set is not triggered, even code does not exist which uses the function i set
The text was updated successfully, but these errors were encountered: