'Return the currently running job objects associated with this history.
Where running is defined as new, waiting, queued, running, resubmitted,
and upload.'

def non_ready_jobs(self, history):

    jobs = self.session().query(model.Job).filter((model.Job.history == history)).filter(model.Job.state.in_(model.Job.non_ready_states))
    return jobs
