JobContainer

JobContainer()

Container class which holds the jobs associated to a JobHandler session. Jobs are attached as properties to allow for easy access in interactive slurmy.

Properties

status_CANCELLED

List jobs in status CANCELLED.

status_CONFIGURED

List jobs in status CONFIGURED.

status_FAILED

List jobs in status FAILED.

status_FINISHED

List jobs in status FINISHED.

status_RUNNING

List jobs in status RUNNING.

status_SUCCESS

List jobs in status SUCCESS.

Member functions

get

JobContainer.get(self, tags=None, states=None)

Get the list of jobs.

  • tags Tags that the jobs must match to (single string or list of strings).
  • states Job states that the jobs must match to (single Status object or list of Status objects).

Returns list of jobs ([Job]).

print

JobContainer.print(self, tags=None, states=None, print_summary=True)

Print the list of jobs and their current status.

  • tags Tags that jobs should match with (single string or list of strings). If a job has any of the provided tags it will be printed.
  • states States that jobs should match with (single Status object or list of Status objects). If a job is in any of the provided states it will be printed.
  • print_summary Print overall summary as well.