Skip to content

Commit 09b1848

Browse files
committed
remote_schema: explicitly inherit from RemoteSchemaRepository
temporal_activity_registration discovers methods to wrap by scanning for Protocol classes in the MRO. Without explicit inheritance, the Protocol never appears in the MRO and fetch is never registered as an activity, causing NotFoundError at runtime.
1 parent 454d1f3 commit 09b1848

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/julee/repositories/http/schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import httpx
44

5+
from julee.contrib.ceap.domain.repositories.remote_schema import RemoteSchemaRepository
56

6-
class HttpRemoteSchemaRepository:
7+
8+
class HttpRemoteSchemaRepository(RemoteSchemaRepository):
79
async def fetch(self, url: str) -> dict[str, Any]:
810
async with httpx.AsyncClient() as client:
911
response = await client.get(url)

src/julee/repositories/memory/remote_schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from typing import Any
22

3+
from julee.contrib.ceap.domain.repositories.remote_schema import RemoteSchemaRepository
34

4-
class MemoryRemoteSchemaRepository:
5+
6+
class MemoryRemoteSchemaRepository(RemoteSchemaRepository):
57
def __init__(self, schemas: dict[str, dict] | None = None) -> None:
68
self._schemas: dict[str, dict] = schemas or {}
79

0 commit comments

Comments
 (0)