3.5.2. sciexp2.expdef.system.gridengine.System

Methods

assumes()

The set of variables that must be present on the launchers.

build(types, *filters)

Generate a sequence with the jobs matching the given criteria.

compute_state()

Compute the current state of jobs.

defines()

The set of variables that must not be present on the launchers.

get_relative_path(path[, cwd])

Get path (relative to base) as relative to cwd.

post_generate(base, path, instance, xlator)

Post-process the generation of file path.

Attributes

ASSUMES

DEFINES

STATE_CMD

class System(base_path, launchers, depends, submit_args)

Bases: System

Manage jobs in a gridengine system.

Parameters:
base_pathstr

Base directory where launchers are located.

launchersInstanceGroup

Group describing the launchers.

dependssequence of str

Variable names to which jobs depend.

submit_argssequence of str

Extra arguments to the job-submitting program.

STATE_CMD = ['qstat', '-r']
ASSUMES = ['JOB_NAME', 'STDOUT', 'STDERR']
DEFINES = []
compute_state()

Compute the current state of jobs.

The implementation must set the _jobs attribute with an InstanceGroup of Job instances. This can be computed using the contents of the _launchers attribute.

static post_generate(base, path, instance, xlator)

Post-process the generation of file path.