File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/ContentProcessor/src/libs Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11from libs .base .application_models import ModelBaseSettings
2+ from pydantic import Field
23
34
45class EnvConfiguration (ModelBaseSettings ):
56 # APP_CONFIG_ENDPOINT
6- app_config_endpoint : str
7+ app_config_endpoint : str = Field ( default = "https://example.com" )
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ def add_handlers_as_process(
4040 }
4141 )
4242
43- async def start_handler_processes (self ):
43+ async def start_handler_processes (self , test_mode : bool = False ):
4444 for handler in self .handlers :
4545 handler ["handler_info" ].handler .start ()
4646
47- while True :
47+ while not test_mode :
4848 for handler in self .handlers :
4949 handler ["handler_info" ].handler .join (timeout = 1 )
5050 if (
You can’t perform that action at this time.
0 commit comments