273
272
if there were any problems accessing files or directories.
274
273
Note that OSError is silently ignored when the `jobs_dir`
275
274
directory is missing.
277
This method should not be used anymore. Consider transitioning your
278
code to :meth:`load_all_jobs()` which is more reliable.
280
job_list, problem_list = self.load_all_jobs()
282
raise problem_list[0]
286
def load_all_jobs(self):
288
Load and parse all of the job definitions of this provider.
290
Unlike :meth:`get_builtin_jobs()` this method does not stop after the
291
first problem encountered and instead collects all of the problems into
292
a list which is returned alongside the job list.
295
Pair (job_list, problem_list) where each job_list is a sorted list
296
of JobDefinition objects and each item from problem_list is an
277
299
self._job_collection.load()
278
if self._job_collection.problem_list:
279
raise self._job_collection.problem_list[0]
283
*self._job_collection.get_all_plugin_objects()),
284
key=lambda job: job.name)
302
*self._job_collection.get_all_plugin_objects()),
303
key=lambda job: job.name)
304
problem_list = self._job_collection.problem_list
305
return job_list, problem_list
286
307
def get_all_executables(self):