kevinhongzl commented on code in PR #76963:
URL: https://github.com/apache/airflow/pull/76963#discussion_r4684582019
##########
airflow-core/src/airflow/models/revoked_token.py:
##########
@@ -60,6 +60,13 @@ def is_revoked(cls, jti: str, *, session: Session =
NEW_SESSION) -> bool:
cls._maybe_cleanup_expired(session)
return bool(session.scalar(select(exists().where(cls.jti == jti))))
+ @classmethod
+ async def is_revoked_async(cls, jti: str) -> bool:
Review Comment:
Thank @jason810496 for the review. I've removed `is_revoked` and moved
those tests into `TestRevokedTokenAsync`.
--
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]