Skip to content

Commit cc2ca27

Browse files
committed
Add logs to verify root cause
1 parent e7c98f5 commit cc2ca27

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

ack_backend/src/update_ack_file.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def upload_ack_file(
8686
row_count_destination = get_row_count(ACK_BUCKET_NAME, temp_ack_file_key)
8787
# TODO: Should we check for > and if so what handling is required
8888
if row_count_destination == row_count_source:
89+
print("Count matched - archiving file and marking job as processed")
8990
move_file(ACK_BUCKET_NAME, temp_ack_file_key, archive_ack_file_key)
9091
move_file(SOURCE_BUCKET_NAME, f"processing/{file_key}", f"archive/{file_key}")
9192

backend/src/forwarding_batch_lambda.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def forward_lambda_handler(event, _):
111111
# Send to SQS
112112
sqs_message_body = json.dumps(array_of_messages)
113113
message_len = len(sqs_message_body)
114+
print(len(array_of_messages))
115+
print(message_len)
114116
logger.info(f"total message length:{message_len}")
115117
message_group_id = f"{file_key}_{created_at_formatted_string}"
116118
if message_len < 256 * 1024:

filenameprocessor/src/audit_table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def upsert_audit_table(
9090
},
9191
ConditionExpression="attribute_not_exists(message_id)", # Prevents accidental overwrites
9292
)
93+
logger.info("job saved with status %s", file_status)
9394
logger.info("%s file, with message id %s, successfully added to audit table", file_key, message_id)
9495

9596
# Return a bool indicating whether the file status is queued

recordprocessor/src/batch_processing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def process_csv_to_fhir(incoming_message_body: dict) -> None:
2929
allowed_operations = interim_message_body.get("allowed_operations")
3030
created_at_formatted_string = interim_message_body.get("created_at_formatted_string")
3131
csv_reader = interim_message_body.get("csv_dict_reader")
32+
print("Processing ECS Task for %s", file_key)
3233

3334
target_disease = map_target_disease(vaccine)
3435

0 commit comments

Comments
 (0)