Open AntonioMrtz opened 2 weeks ago
Improve health endpoint checks with initializations done in lifespan_handler
lifespan_handler
There are required conditions for the app to work properly that are not checked in health endpoint
Add to health endpoint checks that validate the following initialization in lifespan_handler method at __main__
__main__
AuthConfig.init_auth_config( access_token_expire_minutes=AppAuthConfig.ACCESS_TOKEN_EXPIRE_MINUTES, verification_algorithm=AppAuthConfig.VERTIFICATION_ALGORITHM, days_to_expire_cookie=AppAuthConfig.DAYS_TO_EXPIRE_COOKIE, ) DatabaseConnectionManager.init_database_connection( environment=environment, connection_uri=connection_uri ) SongServiceProvider.init_service()
🖐️ Learn how to CONTRIBUTE, all help is welcomed :)
📚 Check out the project documentation for more info
⭐ Help this project grow by giving it a star if you like it!
😵 Trello links are used for traceability, do not ask to join the board before leaving a comment in the related issue
Improve health endpoint with missing required conditions
I'll try to solve this issue
Description
Improve health endpoint checks with initializations done in
lifespan_handler
Context
There are required conditions for the app to work properly that are not checked in health endpoint
How to do it
Add to health endpoint checks that validate the following initialization in
lifespan_handler
method at__main__
Testing
🖐️ Learn how to CONTRIBUTE, all help is welcomed :)
📚 Check out the project documentation for more info
⭐ Help this project grow by giving it a star if you like it!
😵 Trello links are used for traceability, do not ask to join the board before leaving a comment in the related issue