Deployment prod
This commit is contained in:
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
Generated
-14
@@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="WebResourcesPaths">
|
|
||||||
<contentEntries>
|
|
||||||
<entry url="file://$PROJECT_DIR$">
|
|
||||||
<entryData>
|
|
||||||
<resourceRoots>
|
|
||||||
<path value="file://$PROJECT_DIR$/projects" />
|
|
||||||
</resourceRoots>
|
|
||||||
</entryData>
|
|
||||||
</entry>
|
|
||||||
</contentEntries>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
@@ -2,7 +2,7 @@ import hashlib
|
|||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
from contracts.ProjectContext import ProjectContext
|
from contracts.ProjectContext import ProjectContext
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ class IssueComment(BaseModel):
|
|||||||
body: str
|
body: str
|
||||||
created_at: int
|
created_at: int
|
||||||
is_agent: bool = False
|
is_agent: bool = False
|
||||||
marker: dict[str, str] = field(default_factory=dict)
|
marker: dict[str, str] = Field(default_factory=dict)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
@@ -56,16 +56,10 @@ async def lifespan(app: FastAPI):
|
|||||||
|
|
||||||
watcher = asyncio.create_task(watch_and_reset())
|
watcher = asyncio.create_task(watch_and_reset())
|
||||||
|
|
||||||
app.state.youtrack_mcp = await YouTrackMCPClient(
|
|
||||||
str(os.getenv('YOUTRACK_MCP_SERVER')),
|
|
||||||
str(os.getenv('YOUTRACK_MCP_TOKEN')),
|
|
||||||
).connect()
|
|
||||||
|
|
||||||
yield
|
yield
|
||||||
|
|
||||||
# ---- shutdown ----
|
# ---- shutdown ----
|
||||||
watcher.cancel()
|
watcher.cancel()
|
||||||
await app.state.youtrack_mcp.close()
|
|
||||||
|
|
||||||
app = FastAPI(lifespan=lifespan)
|
app = FastAPI(lifespan=lifespan)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user