INNER CODE UNIT · Python
TestAppCreator
derisk-ai/OpenDerisk · packages/derisk-app/src/derisk_app/app.py:631
class TestAppCreator(AppCreator):
config_file: str = CONFIG_ROOT_PATH + "/derisk-test.toml"
class CustomAppCreator(AppCreator):
def __init__(self, config_file=None):
super().__init__(config_file)
if config_file:
# Dynamically set the class attribute so that the create class method can get the correct configuration file
CustomAppCreator.config_file = config_file
def app(self):
return self.create
def workers(self):
return None # Custom config does not support multi-process mode