#NEWLINE# @ decorators . daily ( ) #NEWLINE# def clean_groundtracks( threshold = misc . get_now_utc ( ) ) : #NEWLINE# #INDENT# 'Periodic groundtracks cleanup\n    @param threshold: datetime threshold to clean the old groundtracks\n    ' #NEWLINE# logger . info ( '>>> Cleaning groundtracks' ) #NEWLINE# try : #NEWLINE# #INDENT# no_deleted = gt_models . GroundTrack . objects . delete_older ( threshold ) . delete ( ) #NEWLINE# logger . debug ( ( '>>> tasks@clean_passes.filtered = ' + str ( threshold ) ) ) #NEWLINE# #UNINDENT# except Exception as ex : #NEWLINE# #INDENT# logger . exception ( ( '>>> Exception cleaning groundtracks, ex = ' + str ( ex ) ) , ex ) #NEWLINE# return #NEWLINE# #UNINDENT# logger . info ( '>>> DONE cleaning groundtracks' )