@@ -0,0 +1,441 @@
+import redis%0A%0Afrom django.conf import settings%0Afrom django.core.management.base import BaseCommand%0A%0A%0Aclass Command(BaseCommand):%0A%0A    def handle(self, *args, **options):%0A        r = redis.StrictRedis(host=settings.GONDOR_REDIS_HOST, port=settings.GONDOR_REDIS_PORT, password=settings.GONDOR_REDIS_PASSWORD)%0A        i = 0%0A        for key in r.keys(%22celery-*%22):%0A            r.delete(key)%0A            i += 1%0A        print %22%25d keys cleared%22 %25 i%0A

add a command to clear task metas