Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.datastore.datastore_stub_util.PseudoRandomHRConsistencyPolicy

Stay organized with collections Save and categorize content based on your preferences.

A policy that always gives the same sequence of consistency decisions.

Inherits From: BaseHighReplicationConsistencyPolicy, BaseConsistencyPolicy, expected_type

probability A number between 0 and 1 that is the likelihood of a transaction applying before a global query is executed.
seed A hashable object to use as a seed. Use None to use the current timestamp.

probability Return the probability of applying a job.
random_seed Return the random seed.

Methods

SetProbability

View source

Change the probability of a transaction applying.

Args
probability A number between 0 and 1 that determines the probability of a transaction applying before a global query is run.

SetSeed

View source

Reset the seed.