HUE-2753 [core] Add script to cleanup history in oozie and beeswax tables

Review Request #5285 - Created May 20, 2015 and submitted

Chris Conner
hue
HUE-1071
HUE-2753
e1993ed...
hue
enricoberti, erickt, romain
commit 11a26e4ea52aaadb424af5a23130b80dd75a11f8
Author: Chris Conner <cconner@cloudera.com>
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


  • 0
  • 0
  • 4
  • 0
  • 4
Description From Last Updated
  1. Nice!!

    Just some small comments up to you!

    At some point maybe we could put all these scripts in tools/ops or something like this ;)

  2. same cf workflow belows if you want to remove some duplication

  3. workflows = Workflow.objects.filter(is_trashed=True, last_modified__lte=date.today() - timedelta(days=keepDays))

    totalWorkflows = workflows.count()

    then
    for w in worklows:
    ...

  4. I would remove the (), they are not valid in Python and creates a tuple/generator instead ;)

  5. nice progress bar ;)

  6. 
      
  1. You rock!

  2. 
      
  1. Chris: it looks like you submitted this, can you close this request?

  2. 
      
Review request changed

Status: Closed (submitted)

Loading...