How to trigger cloud_run_v2_job using cloud_scheduler

hskwon
New Member

Thank you in advance!

0 1 536
1 REPLY 1

Hello @hskwon!

Welcome to the Google Cloud Community!

Check out this documentation: Execute Jobs on a Schedule.

You can do the following steps to execute Cloud Run Jobs on schedule:

  1. Go to Cloud Run Jobs, then select the job you want to trigger on a schedule.
  2. Head to the Triggers tab, then press the Add Schedule Trigger.
  3. If you haven't activated the Cloud Scheduler API yet, there will be a prompt which asks you to enable it: Click Enable API.
  4. Fill out the Cloud Scheduler Job form.
  5. Click Continue.
  6. In the Service Account menu, make sure that the service account you are using has the sufficient permission to Invoke the current Cloud Run service.
  7. Click Create to create the Cloud Scheduler Job. This will execute your Cloud Rub Job based on your specified frequency.

Let me know if it helped, thanks!