Skip to content

Commit e3e109d

Browse files
Add extra logging for long running months
1 parent d630e1f commit e3e109d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

alopekis/worker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def month_worker(worker_id: int, work_queue: Queue, results_queue: Queue, log_qu
9292
json_output_file.write(f"{dumps(serialized_record, escape_forward_slashes=False, ensure_ascii=False)}\n")
9393
json_output_file.flush()
9494

95+
if expected_count > 1000000 and results_count % 100000 == 0:
96+
logger.info(f"Worker {worker_id} processed {results_count}/{expected_count} records for {year}-{month}")
97+
9598
if results_count % 10000 == 0:
9699
logger.debug(f"Worker {worker_id} processed {results_count}/{expected_count} records for {year}-{month}")
97100
current_file_index += 1

0 commit comments

Comments
 (0)