Skip to content

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

@TheSprocketBot

Description

@TheSprocketBot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions