potiuk commented on PR #61339:
URL: https://github.com/apache/airflow/pull/61339#issuecomment-3841971125

   Nice. Tests need to be fixed of course, and I think we should also add 
another thing - auto cleanup not only on clean_db but run (not always - just 
from time to time - we could store in memory last time when it was run and run 
it after an hour passes or so - when a token is checked. 
   
   That will slightly slow down some login attempts - but it will also 
auto-clean the db when `airflow db cleanup` is not run periodically. simply 
those expired tokens are not useful immediately after they expired.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to