def _maybe_set_cache(self, meta):
    if meta:
        state = meta['status']
        if ((state == states.SUCCESS) or (state in states.PROPAGATE_STATES)):
            return self._set_cache(meta)
    return meta
def _maybe_set_cache(self, meta):
    if meta:
        state = meta['status']
        if ((state == states.SUCCESS) or (state in states.PROPAGATE_STATES)):
            return self._set_cache(meta)
    return meta