unknown changes

This commit is contained in:
marys committed 2026-10-02 10:27:51 +02:00
1 parent bec3fcaa17
commit 538417922c
13 files changed
+428 -20

No files matched your search

+16 -3
View File
@@ -2,6 +2,7 @@
import asyncio
import os
from models.test_result import TestResult
from faststream.specification.asyncapi.v3_0_0.schema import servers
from pydantic import BaseModel, Field
@@ -23,13 +24,25 @@ class JobResponse(BaseModel):
status: str = Field(..., description="Job status")
async def main():
print("START")
await broker.connect()
print("CONNECTED")
result = TestResult(
to_server="localhost",
test_parameters_id=5)
print("ted to bude")
await broker.publish(
JobCreated(job_id="123", name="build-image").model_dump(),
subject="jobs",
#message=JobCreated(job_id="123", name="build-image", subject="jobs.created").model_dump(),
#message=["text2", 'tyext3', ],
#message=str("text"),
message=result.model_dump(),
#subject="jobs",
subject="test_topic",
)
await broker.close()
await broker.stop()
asyncio.run(main())