Skip to content

Refactor startup events #473

@alyssadai

Description

@alyssadai
  • Move startup events called in main.py to a dedicated startup.py
  • If possible, turn startup checks of environment variables into model validators in env_settings.py:

    api/app/main.py

    Lines 42 to 45 in 63de164

    def validate_environment_variables():
    """
    Check that all required environment variables are set, and exits the app if any are missing or invalid.
    """

Metadata

Metadata

Assignees

No one assigned

    Labels

    _flag:stale[BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged againrefactorSimplifying or restructuring existing code or documentation.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions