def history_remove_failed():
 logging.info('Scheduled removal of all failed jobs')
 history_db = HistoryDB()
 del_job_files(history_db.get_failed_paths())
 history_db.remove_failed()
 history_db.close()
 del history_db

def history_remove_failed ( ) : logging . info ( 'Scheduled removal of all failed jobs' ) history_db = HistoryDB ( ) del_job_files ( history_db . get_failed_paths ( ) ) history_db . remove_failed ( ) history_db . close ( ) del history_db
remove all failed jobs from history .