added deployment script for data streamer part of the stack

This commit is contained in:
2024-11-27 00:25:59 -07:00
parent d07d94cc1e
commit b701e239d2
3 changed files with 41 additions and 14 deletions

View File

@@ -208,7 +208,7 @@ if __name__ == "__main__":
producer.client.send(KAFKA_TOPIC, row_to_dict(row))
dbg_print(row_to_dict(row))
print("streamed packet", idx)
if idx > sample_size:
if sample and idx > sample_size:
break
print(f"total streamed: {idx}")