'Returns the value associated with a particular name.
:param name: The name the value was saved with.
:param default: A default value to return if no state is currently
associated with var.
:returns: A deep copy of the value associated with name. Note that this
explicitly returns a deep copy to avoid problems with mutable
values; mutations are not persisted or shared.
:raises: :class:`KeyError` when no state is associated with var and a
default value is not provided.'

def get_state(self, name, default=_job_state.NO_DEFAULT):

    try:
        return self._state.get('public', name, default=default)
    except KeyError:
        raise KeyError(name)
