'Google cloud error: No agent on master node(s) found to be active in the past 300 seconds

I am seeing an error in my Google Cloud logs : "No agent on master node(s) found to be active in the past 300 seconds" and I am not sure what is causing this.

I have a schedule in Google Cloud to run my queries and it has been running fine in months. Now when it should trigger a new Cloud Function I see the error.

Thanks



Sources

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

Source: Stack Overflow

Solution Source