unknown changes

This commit is contained in:
marys committed 2026-10-12 07:50:32 +02:00
1 parent 538417922c
commit db5f0f4688
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ class DiscoverApiResponseModel(BaseModel):
name: str
@broker.subscriber("test_topic.request")
@broker.subscriber("test_topic.publish")
async def handle_job(event: Any):
print(f"{SUBJECT}.broadcast received job_id={event}")
@@ -56,7 +56,7 @@ async def handle_job(event: Any):
print(response_msg)
#print(f"{response_msg=}")
#response_msg = {'name': 'TAS_ZAG', 'probe_type': 'tas server', 'command': 'add node'}
print("===", await broker.publish(response_msg, subject=f"test_topic.response"))
print("===", await broker.publish(response_msg, subject=f"test_topic.request"))
#print("===", await broker.publish("neco", subject="mtr"))
return f"Hello"
+2 -2
View File
@@ -28,7 +28,7 @@ async def main():
await broker.connect()
print("CONNECTED")
result = TestResult(
to_server="localhost",
to_server="localhost-1",
test_parameters_id=5)
@@ -39,7 +39,7 @@ async def main():
#message=str("text"),
message=result.model_dump(),
#subject="jobs",
subject="test_topic",
subject="test_topic.request",
)
await broker.stop()