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_string
is notNone
and 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_DESCRIPTION
ordescription
PPN_JOB_LANGUAGE
orlanguage
PPN_JOB_IS_AUDIO_FILE_NAME_REGEX
ori_a_name_regex
PPN_JOB_IS_AUDIO_FILE_RELATIVE_PATH
ori_a_relative_path
PPN_JOB_IS_HIERARCHY_PREFIX
ori_hierarchy_prefix
PPN_JOB_IS_HIERARCHY_TYPE
ori_hierarchy_type
PPN_JOB_IS_TASK_DIRECTORY_NAME_REGEX
ori_task_directory_name_regex
PPN_JOB_IS_TEXT_FILE_NAME_REGEX
ori_t_name_regex
PPN_JOB_IS_TEXT_FILE_RELATIVE_PATH
ori_t_relative_path
PPN_JOB_OS_CONTAINER_FORMAT
oro_container_format
PPN_JOB_OS_FILE_NAME
oro_name
PPN_JOB_OS_HIERARCHY_PREFIX
oro_hierarchy_prefix
PPN_JOB_OS_HIERARCHY_TYPE
oro_hierarchy_type
Parameters: config_string (string) – the job configuration string Raises: TypeError: if config_string
is notNone
and it is not a Unicode stringRaises: KeyError: if trying to access a key not listed above