sanger-pathogens / annot-web

This repository has been archived, currently maintained version is at https://github.com/iii-companion/annot-web
Other
0 stars 2 forks source link

add script to clean up old jobs #26

Closed satta closed 8 years ago

satta commented 8 years ago

Deleting old jobs manually can be tedious and monotone if there are lots, in particular the first time this is needed. This PR introduces a rake task that automates the process by deleting all jobs that finished more than three months before the task is run. If the designated example job is among the candidates, it is obviously spared. Use something like:

bundle exec rake expire_old

to run it.