44
55from aignostics .utils import BasePageBuilder
66
7- APPLICATION_DESCRIBE_PAGE_TIMEOUT = 30
8- RUN_DESCRIBE_PAGE_TIMEOUT = 30
7+ HOME_PAGE_TIMEOUT_SECONDS = 30
8+ APPLICATION_DESCRIBE_PAGE_TIMEOUT_SECONDS = 30
9+ RUN_DESCRIBE_PAGE_TIMEOUT_SECONDS = 30
910
1011
1112class PageBuilder (BasePageBuilder ):
@@ -15,14 +16,14 @@ def register_pages() -> None:
1516
1617 app .add_static_files ("/application_assets" , Path (__file__ ).parent / "assets" )
1718
18- @ui .page ("/" )
19+ @ui .page ("/" , response_timeout = HOME_PAGE_TIMEOUT_SECONDS )
1920 async def page_index (client : Client , query : str | None = None ) -> None :
2021 """Index page of application module, serving as the homepage of Aignostics Launchpad."""
2122 from ._page_index import _page_index # noqa: PLC0415
2223
2324 await _page_index (client , query = query )
2425
25- @ui .page ("/application/{application_id}" , response_timeout = APPLICATION_DESCRIBE_PAGE_TIMEOUT )
26+ @ui .page ("/application/{application_id}" , response_timeout = APPLICATION_DESCRIBE_PAGE_TIMEOUT_SECONDS )
2627 async def page_application_describe (application_id : str ) -> None :
2728 """Describe Application.
2829
@@ -33,7 +34,7 @@ async def page_application_describe(application_id: str) -> None:
3334
3435 await _page_application_describe (application_id )
3536
36- @ui .page ("/application/run/{run_id}" , response_timeout = RUN_DESCRIBE_PAGE_TIMEOUT )
37+ @ui .page ("/application/run/{run_id}" , response_timeout = RUN_DESCRIBE_PAGE_TIMEOUT_SECONDS )
3738 async def page_application_run_describe (run_id : str ) -> None :
3839 """Describe Application Run.
3940
0 commit comments