freelancing-solutions / gcp-database-as-a-service-stock-markets

GCP NDB database as a service for a stock market investment and social web services.
MIT License
3 stars 1 forks source link

- send a message that another instance has started up #472

Open freelancing-solutions opened 3 years ago

freelancing-solutions commented 3 years ago

https://github.com/freelancing-solutions/gcp-database-as-a-service-stock-markets/blob/c275b5cb5b6a55068f4588336cd973f57700a978/data_service/handlers/routes.py#L13


    """
        Use Context will create a database connection
        APP-Engine Warm UP Handler
        # TODO - send a message that another instance has started up
    """
    return "OK", 200

# TODO - send an sms notification or email message with the error message for each error
# noinspection PyUnusedLocal
@default_handlers_bp.app_errorhandler(BadRequest)
def handle_bad_request(e: BadRequest) -> tuple:

94a058d871d17a4dd75064d2485e9febca77acdf