Skip to content
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

Casbin migrations conflict when multiple instances are starting at the same time #539

Open
TheSprocketBot opened this issue Apr 12, 2024 · 0 comments

Comments

@TheSprocketBot
Copy link

When casbin is first initialized; it tries to apply / check migrations against the database. During this process it seems to use a lock.

With this in mind, we should find a way to not fail - if a migration is already running, either with a retry (w/ backoff), or some other error handling method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant