Set property `name` to `value`, but only if it is part of the mapping
        returned from `worker_mapping` (ie - data transported to frontend).

        This method is used from the REST API DB, so it knows what to set and
        what not, to prevent users from setting internal values.

        Args:
            name (str): Name of the property to set.
            value (obj): Any python value.

        Raises:
            KeyError: If `name` can't be set.

def _set_property(self, name, value):
        """
        Set property `name` to `value`, but only if it is part of the mapping
        returned from `worker_mapping` (ie - data transported to frontend).

        This method is used from the REST API DB, so it knows what to set and
        what not, to prevent users from setting internal values.

        Args:
            name (str): Name of the property to set.
            value (obj): Any python value.

        Raises:
            KeyError: If `name` can't be set.
        """
        if name in worker_mapping().keys():
            setattr(self, name, value)
            return

        raise KeyError("Can't set `%s`!" % name)