Returns all unfinished BatchRuns of the given type.
This is used to check if a specific job has already finished.