@classmethod
  def StaticAdd(cls, queue_urn, token, rdf_value):
    if not isinstance(rdf_value, cls.rdf_type):
      raise ValueError("This collection only accepts values of type %s." %
                       cls.rdf_type.__name__)

    timestamp = rdfvalue.RDFDatetime().Now().AsMicroSecondsFromEpoch()

    if not isinstance(queue_urn, rdfvalue.RDFURN):
      queue_urn = rdfvalue.RDFURN(queue_urn)

    result_subject = cls._MakeURN(queue_urn, timestamp)
    data_store.DB.Set(result_subject,
                      cls.VALUE_ATTRIBUTE,
                      rdf_value.SerializeToString(),
                      timestamp=timestamp,
                      token=token)
Returns min(val1, val2) returning None only if both values are None
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/queue.py/Queue.StaticAdd--crossover with--dataset/ETHPy150Open scrapinghub/skinfer/skinfer/json_schema_merger.py/min_or_none