

@classmethod
def _unpack(cls, name, config_dict):
    '\n        Set class attributes from config dictionary.\n\n        :type name: str\n        :type config_dict: dict\n        :rtype: JobConfig\n        '
    setup_build = cls._shell_command_list_to_single_command(config_dict.get(SETUP_BUILD))
    teardown_build = cls._shell_command_list_to_single_command(config_dict.get(TEARDOWN_BUILD))
    command = cls._shell_command_list_to_single_command(config_dict[COMMANDS])
    atomizer = Atomizer(config_dict[ATOMIZERS])
    max_executors = config_dict.get(MAX_EXECUTORS, cls.DEFAULT_MAX_EXECUTORS)
    max_executors_per_slave = config_dict.get(MAX_EXECUTORS_PER_SLAVE, cls.DEFAULT_MAX_EXECUTORS)
    return cls(name, setup_build, teardown_build, command, atomizer, max_executors, max_executors_per_slave)

dataset/ETHPy150Open box/ClusterRunner/app/master/job_config.py JobConfig._unpack/original