Refactor package architecture

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-08-12 12:20:47 +08:00
parent 219343a06a
commit 4616aded6a
88 changed files with 869 additions and 794 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ else:
class AppMainProcess(ProcessContext.Process):
"""Represent app main process."""
def __init__(self, func: Callable[[], ApplicationFactory], **kwargs):
def __init__(self, func: Callable[[], ApplicationRunner], **kwargs):
"""Initialize the AppMainProcess."""
super().__init__(**kwargs)
@@ -64,9 +64,9 @@ class AppMainProcess(ProcessContext.Process):
traceback.print_exception(exceptionType, exceptionValue, tb)
if isinstance(exceptionValue, AssertionError):
exitcode = ApplicationFactory.ExitCode.AssertionError.value
exitcode = ApplicationRunner.ExitCode.AssertionError.value
else:
exitcode = ApplicationFactory.ExitCode.UnknownException.value
exitcode = ApplicationRunner.ExitCode.UnknownException.value
logger.error(f'stopped with exitcode {exitcode}')