I've deployed a dynamic Dash app on Google cloud run which has calls to databases that updates hourly. How do I get cloud run to refresh/run the database calls after deployment? The code is written in python and does use a function to execute the database refresh and app.layout dash function displaying the updated tables/graphs?
Update: ok found out this is related to setting minimum instances to 1 to avoid cold starts. How can I get the app to start quickly but still run the code to update the data?
Thanks,
Eric
Hi @tangedahl,
Welcome to Google Cloud Community!
You can check this documentation on general development tips wherein you can set your CPU always allocated and setting minimum instance to avoid cold starts as the CPU would idle if no request was received.
Hope this helps.