fief-dev / fief

Users and authentication management SaaS
https://www.fief.dev
Other
577 stars 48 forks source link

Tokens cleanup task fails when connecting to an outdated database #65

Closed frankie567 closed 2 years ago

frankie567 commented 2 years ago

Describe the bug

The tokens cleanup task works by iterating over each database to remove the expired tokens. On external databases, it may happen that the schema is not up-to-date and provoke an error, stopping the whole operation.

Expected behavior

The task should silently discard outdated databases. Maybe add a log warning.

Configuration

Additional context

https://sentry.io/share/issue/c4914db1f8034389a5a4f346e34440cf/