remove deduplication as default
This commit is contained in:
@@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user