def history_remove_completed():
 logging.info('Scheduled removal of all completed jobs')
 history_db = HistoryDB()
 history_db.remove_completed()
 history_db.close()
 del history_db

def history_remove_completed ( ) : logging . info ( 'Scheduled removal of all completed jobs' ) history_db = HistoryDB ( ) history_db . remove_completed ( ) history_db . close ( ) del history_db
remove all completed jobs from history .