Created
April 17, 2018 06:40
-
-
Save kgantsov/d5796836b4aed33916bc750b65148bde to your computer and use it in GitHub Desktop.
Small script that set an expiration time on each celery result key in redis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in $(redis-cli keys celery-task-meta-*); do redis-cli EXPIRE "$i" 3600; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment