job¶
This module contains the following classes:
Job, representing a job;JobConfiguration, representing a job configuration.
-
class
aeneas.job.Job(config_string=None, rconf=None, logger=None)[source]¶ A structure representing a job, that is, a collection of related Tasks.
Parameters: - config_string (string) – the job configuration string
- rconf (
RuntimeConfiguration) – a runtime configuration - logger (
Logger) – the logger object
Raises: TypeError: if
config_stringis notNoneand not a Unicode string-
identifier¶ The identifier of the job.
Return type: string
-
class
aeneas.job.JobConfiguration(config_string=None)[source]¶ A structure representing a configuration for a job, that is, a series of directives for I/O and processing the job.
Allowed keys:
PPN_JOB_DESCRIPTIONordescriptionPPN_JOB_LANGUAGEorlanguagePPN_JOB_IS_AUDIO_FILE_NAME_REGEXori_a_name_regexPPN_JOB_IS_AUDIO_FILE_RELATIVE_PATHori_a_relative_pathPPN_JOB_IS_HIERARCHY_PREFIXori_hierarchy_prefixPPN_JOB_IS_HIERARCHY_TYPEori_hierarchy_typePPN_JOB_IS_TASK_DIRECTORY_NAME_REGEXori_task_directory_name_regexPPN_JOB_IS_TEXT_FILE_NAME_REGEXori_t_name_regexPPN_JOB_IS_TEXT_FILE_RELATIVE_PATHori_t_relative_pathPPN_JOB_OS_CONTAINER_FORMAToro_container_formatPPN_JOB_OS_FILE_NAMEoro_namePPN_JOB_OS_HIERARCHY_PREFIXoro_hierarchy_prefixPPN_JOB_OS_HIERARCHY_TYPEoro_hierarchy_type
Parameters: config_string (string) – the job configuration string Raises: TypeError: if config_stringis notNoneand it is not a Unicode stringRaises: KeyError: if trying to access a key not listed above