Skip to content

Instantly share code, notes, and snippets.

View johnallen3d's full-sized avatar

John Allen johnallen3d

View GitHub Profile
@johnallen3d
johnallen3d / ruote-cleanup.rb
Last active December 9, 2015 23:58
Our Ruote storage has collected some cruft over time. We have a fair number of abandoned (leftover) items in storage that can be killed. In addition because our workers are running on Heroku they are not being cleaned up properly.
# **** grab a reference to the redis instance ****
redis = RuoteKit.dashboard.storage.redis;nil
# **** delete all errors ****
redis.del(redis.keys('*errors*'))
# **** delete all expressions and workitems from march 2013 ****
redis.del(redis.keys('expressions*201303*'))
redis.del(redis.keys('workitems*201303*'))