def get_postponed_settings()

in docker/services/meta_service.py [0:0]


    def get_postponed_settings(self, instance_meta: dict):
        postpone_settings = instance_meta.get(POSTPONE_SETTINGS_KEY)
        if not postpone_settings or not isinstance(postpone_settings, list):
            return []
        active_settings = []

        for postpone_setting in postpone_settings:
            target_timestamp = postpone_setting.get(self.postponed_key)
            try:
                postpone_dt = datetime.fromtimestamp(target_timestamp // 1000)
                postpone_setting[self.postponed_key] = postpone_dt
            except Exception as e:
                _LOG.error(f'Can\'t convert \'{target_timestamp}\' '
                           f'to datetime. Error: {str(e)}')
                continue
            target_actions = postpone_setting.get(
                self.postponed_for_actions_key, RecommendationTypeEnum.list())

            target_actions = [action for action in target_actions
                              if action in RecommendationTypeEnum.list()]
            postpone_setting[self.postponed_for_actions_key] = target_actions
            if target_timestamp and target_actions and\
                    self.is_postponed(postponed_till_dt=postpone_dt):
                active_settings.append(postpone_setting)

        return active_settings