JobFactory module

class JobFactory.JobFactory

Bases: object

Class factory for different Job implementations

job(configfile: str, NPROCS: int) → cloudflow.job.Job.Job

Create a new specific type of Job instance

Parameters
  • configfile (str) –

  • NPROCS (int) – The number of processors to run the job on

Returns

newjob

Return type

Job

readconfig(configfile)

Reads a JSON configuration file into a dictionary.

Parameters

configfile (str) – Full path and filename of a JSON configuration file for this cluster.

Returns

cfDict – Dictionary containing this cluster parameterized settings.

Return type

dict