We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aca699 commit 89b4d2dCopy full SHA for 89b4d2d
2 files changed
src/ContentProcessor/src/libs/application/env_config.py
@@ -1,6 +1,7 @@
1
from libs.base.application_models import ModelBaseSettings
2
+from pydantic import Field
3
4
5
class EnvConfiguration(ModelBaseSettings):
6
# APP_CONFIG_ENDPOINT
- app_config_endpoint: str
7
+ app_config_endpoint: str = Field(default="https://example.com")
src/ContentProcessor/src/libs/process_host/handler_process_host.py
@@ -40,11 +40,11 @@ def add_handlers_as_process(
40
}
41
)
42
43
- async def start_handler_processes(self):
+ async def start_handler_processes(self, test_mode: bool = False):
44
for handler in self.handlers:
45
handler["handler_info"].handler.start()
46
47
- while True:
+ while not test_mode:
48
49
handler["handler_info"].handler.join(timeout=1)
50
if (
0 commit comments