File tree Expand file tree Collapse file tree
functions-python/process_validation_report/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -326,21 +326,15 @@ def compute_validation_report_counters(session):
326326 db = Database ()
327327 with db .start_db_session (echo = False ) as session :
328328 while True :
329- # Query only reports where counters are zero
330- remaining_reports_count = (
331- session .session .query (Validationreport )
332- .limit (batch_size )
333- .offset (offset )
334- .count ()
335- )
336-
337- # Break the loop if no more reports are found
338- if remaining_reports_count == 0 :
339- break
340-
341329 validation_reports = (
342330 session .query (Validationreport ).limit (batch_size ).offset (offset ).all ()
343331 )
332+ print (
333+ f"Processing { len (validation_reports )} validation reports from offset { offset } ."
334+ )
335+ # Break the loop if no more reports are found
336+ if len (validation_reports ) == 0 :
337+ break
344338
345339 for report in validation_reports :
346340 counters = process_validation_report_notices (report .notices )
You can’t perform that action at this time.
0 commit comments