Skip to content

Instantly share code, notes, and snippets.

@kgantsov
Created April 17, 2018 06:40
Show Gist options
  • Select an option

  • Save kgantsov/d5796836b4aed33916bc750b65148bde to your computer and use it in GitHub Desktop.

Select an option

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