Python implementation to minimize/reduce the cold start of the GCP Cloud Run container by doing a self call when the container is about to expire