def setup_validation(self):
    self.session.query(Job).delete(synchronize_session='fetch')
    self.val_job = insert_job(self.session, None, JOB_STATUS_DICT['ready'], JOB_TYPE_DICT['validation'], self.submission_id, filename=None)
def setup_validation(self):
    self.session.query(Job).delete(synchronize_session='fetch')
    self.val_job = insert_job(self.session, None, JOB_STATUS_DICT['ready'], JOB_TYPE_DICT['validation'], self.submission_id, filename=None)