Skip to content

Home

Modern MISPAPIWorkerFrontendMySqlRedis
Modern MISPAPIWorkerFrontendMySqlRedis

api-worker-integration

app = init_app() module-attribute

The FastAPI instance.

main()

The entry point of the MMISP Worker application. Starts the enabled workers and sets up the API.

Source code in src/mmisp/worker/main.py
38
39
40
41
42
43
44
45
46
def main() -> None:
    """
    The entry point of the MMISP Worker application.
    Starts the enabled workers and sets up the API.
    """

    config: SystemConfigData = system_config_data

    uvicorn.run(f"{__name__}:app", port=int(config.api_port), log_level="info", host=config.api_host)