progress on kafka

This commit is contained in:
lennyaiko
2025-04-10 14:43:35 +01:00
parent 34cba74580
commit a2e4daa4e7
4 changed files with 43 additions and 38 deletions
+1 -12
View File
@@ -1,20 +1,9 @@
from app import create_app
from app.integrations import KafkaIntegration
from app.config import settings
app = create_app()
if __name__ == "__main__":
kafka = KafkaIntegration()
if kafka.is_kafka_running():
print("Kafka is running")
else:
print("Kafka is not running")
exit(1)
try:
message = kafka.receive_messages(
topic=
)
app.run(host="0.0.0.0", port=5000, debug=True)