parameters: (self, actions=None)
return_statement: return min(max(1, delay // 10), 4 * 60) if delay else 4 * 60
docstring: Return the expected time interval used by the cron, in minutes.
docstring_summary: Return the expected time interval used by the cron, in minutes.
docstring_tokens: Return the expected time interval used by the cron in minutes .
function: def _get_cron_interval(self, actions=None):
          """ Return the expected time interval used by the cron, in minutes. """
          def get_delay(rec):
              return rec.trg_date_range * DATE_RANGE_FACTOR[rec.trg_date_range_type]
  
          if actions is None:
              actions = self.with_context(active_test=True).search([('trigger', '=', 'on_time')])
  
          # Minimum 1 minute, maximum 4 hours, 10% tolerance
          delay = min(actions.mapped(get_delay), default=0)
          return min(max(1, delay // 10), 4 * 60) if delay else 4 * 60
function_tokens: def _get_cron_interval ( self , actions = None ) : def get_delay ( rec ) : return rec . trg_date_range * DATE_RANGE_FACTOR [ rec . trg_date_range_type ] if actions is None : actions = self . with_context ( active_test = True ) . search ( [ ( 'trigger' , '=' , 'on_time' ) ] ) # Minimum 1 minute, maximum 4 hours, 10% tolerance delay = min ( actions . mapped ( get_delay ) , default = 0 ) return min ( max ( 1 , delay // 10 ) , 4 * 60 ) if delay else 4 * 60