Skip to content

Commit c930608

Browse files
committed
VED-755: code review changes
1 parent 1941dba commit c930608

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lambdas/id_sync/src/ieds_db_operations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
from os_vars import get_ieds_table_name
33
from common.aws_dynamodb import get_dynamodb_table
44
from common.clients import logger, dynamodb_client
5-
from utils import make_status, BATCH_SIZE
5+
from utils import make_status
66
from exceptions.id_sync_exception import IdSyncException
77

88
ieds_table = None
9+
BATCH_SIZE = 25 # DynamoDB TransactWriteItems max batch size
910

1011

1112
def get_ieds_table():

lambdas/id_sync/src/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ def make_status(msg: str, nhs_number: str | None = None, status: str = "success"
1111
if nhs_number is not None:
1212
result["nhs_number"] = nhs_number
1313
return result
14-
15-
16-
BATCH_SIZE = 25

0 commit comments

Comments
 (0)