'How to restart/kill all cloud run instances

Lets say I implement some caching on cloud run start, like google suggests in its own documentation: https://cloud.google.com/run/docs/tips/general#using_global_variables

But my data sometimes change and I would like to update the cache. Since cloud run cannot do async task in the background, my only option is to tell cloud run to kill all the instances and create new ones.

How to do that without deploying a new revision?

Or can I deploy new revision without building a new container?

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source