Skip to main content
src/producers/replay_to_files.py · chapter Replaying the data, file 1 · 73 lines · open in the repository

What it does

Replay clean/master.parquet into a folder of JSON-lines files, for running the streaming job on a laptop without Kafka. Same messages and the same late-data option as replay_master.py (one JSON object per row, null for empty values), but instead of sending to Kafka it writes one file per —days-per-file trading days. The job reads one file per micro-batch, so a message held back into a later file really does arrive late. Run from anywhere:
then:

Connections

Uses: src/common/settings.py

Source

src/producers/replay_to_files.py