Skip to content

Commit 360d56f

Browse files
committed
Review comments
1 parent 62ffc51 commit 360d56f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lambdas/recordforwarder/src/forwarding_batch_lambda.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,13 @@ def forward_lambda_handler(event, _):
108108
identifier_system = fhir_json["identifier"][0]["system"]
109109
identifier_value = fhir_json["identifier"][0]["value"]
110110
identifier = f"{identifier_system}#{identifier_value}"
111+
111112
if identifier in array_of_identifiers:
112113
identifier_already_present = True
113-
delay_milliseconds = 30 # Delay time in milliseconds
114+
delay_milliseconds = 30
115+
# A basic workaround by the existing team to ensure that subsequent operations e.g. an update after an
116+
# initial create for the same item complete successfully. Consider using strongly consistent reads
117+
# instead: VED-958
114118
time.sleep(delay_milliseconds / 1000)
115119
else:
116120
array_of_identifiers.append(identifier)

0 commit comments

Comments
 (0)