Just some small comments up to you!
At some point maybe we could put all these scripts in tools/ops or something like this ;)
same cf workflow belows if you want to remove some duplication
workflows = Workflow.objects.filter(is_trashed=True, last_modified__lte=date.today() - timedelta(days=keepDays))
totalWorkflows = workflows.count()
for w in worklows:
I would remove the (), they are not valid in Python and creates a tuple/generator instead ;)
nice progress bar ;)
HUE-2753 [core] Add script to cleanup history in oozie and beeswax tables
Review Request #5285 - Created May 20, 2015 and submitted
|enricoberti, erickt, romain|
commit 11a26e4ea52aaadb424af5a23130b80dd75a11f8 Author: Chris Conner <firstname.lastname@example.org> Date: Wed May 20 10:17:33 2015 -0400 HUE-2753 [core] Add script to cleanup history in oozie and beeswax tables :000000 100755 0000000... a8fb2b5... A tools/history_cleanup/hue_history_cron.sh
Chris: it looks like you submitted this, can you close this request?