redash/migrations/0026_remove_query_trackers_redis_key.py
Arik Fraimovich 4d47583a94 Fix: Redis memory leak.
We were appending new QueryTaskTracker ids to query_task_trackers sorted set
but we were never removing them...

Also removed the migration to create index on org_id as it created by default
by Peewee for foreign keys.
2016-10-08 10:59:52 +03:00

4 lines
114 B
Python

from redash import redis_connection
if __name__ == '__main__':
redis_connection.delete('query_task_trackers')