revoke.py 166 B

123456
  1. from celery.datastructures import LimitedSet
  2. REVOKES_MAX = 10000
  3. REVOKE_EXPIRES = 3600 # One hour.
  4. revoked = LimitedSet(maxlen=REVOKES_MAX, expires=REVOKE_EXPIRES)