You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using Heroku Postgres - Mini which has the limitation of 10k records
Recently, the records have increased so quickly
We should add a task to clean the token table and run it everyday
namespace:tokendodesc"Clean expired tokens"taskclean: :environmentdodelete_before=1.days.agoexpire=["(revoked_at IS NOT NULL AND revoked_at < :delete_before) OR " +
"(expires_in IS NOT NULL AND (created_at + expires_in * INTERVAL '1 second') < :delete_before)",{delete_before: delete_before}]Doorkeeper::AccessToken.where(expire).delete_allendend
Who Benefits?
Maintainers
The text was updated successfully, but these errors were encountered:
In both cases, there is a cost of running it. However, on GH Actions, it would be within our free tier of 3,000 minutes and by using a workflow, it can be trigged manually when needed.
IMO I doubt it would be needed to be run daily. Weekly might be sufficient 💡
Why
Who Benefits?
Maintainers
The text was updated successfully, but these errors were encountered: