remove deduplication as default
This commit is contained in:
@@ -13,7 +13,7 @@ EMAIL_SENDER = ('EDUSEG®', 'noreply@eduseg.com.br')
|
||||
|
||||
PAPERFORGE_API = 'https://paperforge.saladeaula.digital'
|
||||
CERT_REPORTING_URI = 's3://saladeaula.digital/certs/reporting.html'
|
||||
ESIGN_URI = 's3://saladeaula.digital/esigns/ecnpj_2025.pfx'
|
||||
ESIGN_URI = 's3://saladeaula.digital/esigns/11de2510136adbac.pfx'
|
||||
|
||||
|
||||
DBNAME: str = os.getenv('POSTGRES_DB') # type: ignore
|
||||
|
||||
@@ -130,7 +130,7 @@ def enroll(
|
||||
if deduplication_window
|
||||
else DEDUP_WINDOW_OFFSET_DAYS
|
||||
)
|
||||
ttl_ = ttl(
|
||||
dedup_lock_ttl = ttl(
|
||||
start_dt=now_,
|
||||
days=course.access_period - offset_days,
|
||||
)
|
||||
@@ -140,7 +140,7 @@ def enroll(
|
||||
'sk': lock_hash,
|
||||
'enrollment_id': enrollment.id,
|
||||
'created_at': now_,
|
||||
'ttl': ttl_,
|
||||
'ttl': dedup_lock_ttl,
|
||||
},
|
||||
cond_expr='attribute_not_exists(sk)',
|
||||
exc_cls=DeduplicationConflictError,
|
||||
@@ -151,7 +151,7 @@ def enroll(
|
||||
'sk': 'LOCK',
|
||||
'hash': lock_hash,
|
||||
'created_at': now_,
|
||||
'ttl': ttl_,
|
||||
'ttl': dedup_lock_ttl,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
enrollment,
|
||||
org=metadata.get('org', None),
|
||||
subscription=subscription,
|
||||
# Transfer the deduplication window if it exists
|
||||
deduplication_window={'offset_days': offset_days} if offset_days else None,
|
||||
linked_entities=frozenset(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user