def __init__(self, config_string=None, rconf=None, logger=None): super(Task, self).__init__(rconf=rconf, logger=logger) self.identifier = gf.uuid_string() self.configuration = None self.audio_file_path = None # relative to input container root self.audio_file_path_absolute = None # concrete path, file will be read from this! self.audio_file = None self.text_file_path = None # relative to input container root self.text_file_path_absolute = None # concrete path, file will be read from this! self.text_file = None self.sync_map_file_path = None # relative to output container root self.sync_map_file_path_absolute = None # concrete path, file will be written to this! self.sync_map = None if config_string is not None: self.configuration = TaskConfiguration(config_string)
def __init__(self, config_string=None, rconf=None, logger=None): super(Job, self).__init__(rconf=rconf, logger=logger) self.tasks = [] self.identifier = gf.uuid_string() self.configuration = None if config_string is None else JobConfiguration(config_string)
def test_uuid_string(self): uuid = gf.uuid_string() self.assertEqual(len(uuid), 36)
def __init__(self, config_string=None, rconf=None, logger=None): super(Job, self).__init__(rconf=rconf, logger=logger) self.tasks = [] self.identifier = gf.uuid_string() self.configuration = None if config_string is None else JobConfiguration( config_string)