Module dynamo_lock_options

Source
Expand description

DynamoDb option keys to use when creating DynamoDbOptions. The same key should be used whether passing a key in the hashmap or setting it as an environment variable.

Constantsยง

DYNAMO_LOCK_ADDITIONAL_TIME_TO_WAIT_MILLIS
Timeout for lock acquisition. In practice, this is used to allow acquiring the lock in case it cannot be acquired immediately when a check after LEASE_DURATION is performed. If not provided, defaults to 1000 millis.
DYNAMO_LOCK_LEASE_DURATION
Amount of time to lease a lock. If not provided, defaults to 20 seconds.
DYNAMO_LOCK_OWNER_NAME
Name of the task that owns the DynamoDb lock. If not provided, defaults to a UUID that represents the process performing the write.
DYNAMO_LOCK_PARTITION_KEY_VALUE
Used as the partition key for DynamoDb writes. This should be the same for all writers writing against the same S3 table.
DYNAMO_LOCK_REFRESH_PERIOD_MILLIS
Amount of time to wait before trying to acquire a lock. If not provided, defaults to 1000 millis.
DYNAMO_LOCK_TABLE_NAME
The DynamoDb table where locks are stored. Must be the same between clients that require the same lock.