Skip to content

Commit 391c418

Browse files
committed
Process row count
1 parent 5a780f0 commit 391c418

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

recordprocessor/src/batch_processor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def process_rows(file_id, vaccine, supplier, file_key, allowed_operations, creat
8282
if (start_row > 0 and row_count <= start_row+10):
8383
logger.info(f"Restarted Process (log up to first 10): {total_rows_processed_count+1}")
8484

85+
total_rows_processed_count += 1
86+
logger.info(f"Process row: {total_rows_processed_count}")
87+
8588
# Process the row to obtain the details needed for the message_body and ack file
8689
details_from_processing = process_row(target_disease, allowed_operations, row)
8790
# Create the message body for sending
@@ -94,8 +97,7 @@ def process_rows(file_id, vaccine, supplier, file_key, allowed_operations, creat
9497
**details_from_processing,
9598
}
9699
send_to_kinesis(supplier, outgoing_message_body, vaccine)
97-
total_rows_processed_count += 1
98-
logger.info("Total rows processed: %s", total_rows_processed_count)
100+
99101
except Exception as error: # pylint: disable=broad-exception-caught
100102
# if error reason is 'invalid continuation byte', then it's a decode error
101103
logger.error("Error processing row %s: %s", row_count, error)

0 commit comments

Comments
 (0)