diff --git a/src/events.py b/src/events.py index 1dd415f..838916c 100644 --- a/src/events.py +++ b/src/events.py @@ -29,7 +29,6 @@ async def main_event(cls) -> None: while True: await asyncio.sleep(cls.get_time_until_next_hour()) async with AsyncClient() as client: - print(cls.HOST_URL) endpoint = f"http://0.0.0.0:{cls.PORT}/trigger_send_user_hourly_memories/{Events.TOKEN}" response = await client.post(url=endpoint) @@ -135,7 +134,7 @@ async def broadcast_message(cls, message: str) -> None: @classmethod async def request(cls, url: str, payload: dict, debug: bool = True) -> Response: - async with AsyncClient() as client: + async with AsyncClient(timeout=30 * 60) as client: request = await client.post(url, json=payload) if debug: print(request.json())