Schedule a function using Cloud Scheduler and Pub/Sub

You can schedule an event-driven function when your function should be triggered directly in response to events within your Google Cloud project; for example, when a message is published to a Pub/Sub topic.

For more information, in the Cloud Scheduler documentation, see Schedule an event-driven Cloud Function.