jason810496 commented on code in PR #76963:
URL: https://github.com/apache/airflow/pull/76963#discussion_r4675090951


##########
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:
   After this change, `is_revoked` has no production callers. Could we drop it 
and move its tests to `is_revoked_async`?



-- 
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