We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e726620 commit 3a2f934Copy full SHA for 3a2f934
main.py
@@ -153,8 +153,8 @@ def main():
153
"prefix or instrument name not set - have you run config_env.bat?"
154
)
155
156
- broker = "livedata.isis.cclrc.ac.uk:31092"
157
- topic = f"{instrument_name}_runInfo"
+ broker = os.environ.get("BORZOI_KAFKA_BROKER", "livedata.isis.cclrc.ac.uk:31092")
+ topic = os.environ.get("BORZOI_TOPIC", f"{instrument_name}_runInfo")
158
logger.info("setting up producer")
159
loop = asyncio.new_event_loop()
160
producer = loop.run_until_complete(set_up_producer(broker))
tests/test_main.py
@@ -0,0 +1,3 @@
1
+
2
+def test_that_does_nothing():
3
+ pass
0 commit comments