I have a cloud run job(not cloud run service). I want to execute next cloud run job when first job completes . what are the suggested ways to trigger job 2 when cloud run job 1 completes ?
Hello @gcloudLearning,
There are two ways on how you can execute cloud run jobs, through Workflows or by schedule.
Cloud Rub Jobs do not listen for or serve HTTP requests. To execute Cloud Run jobs from a workflow, use Cloud Run Admin API Connector. By using googleapis.
For an example, check Executing a Cloud Run Job using Workflows. You can also check out this Stack Overflow post as it also talks about the same solution.
Another way you can trigger a cloud run job is by using a schedule. But in using Cloud Scheduler Job you have to input the frequency of the job rather than executing once a job finishes. You can specify the scheduler to run every minute, every hour, or every a certain day of the week.
If the above options don't work, you can contact Google Cloud Support to further look into your case. Let me know if it helped, thanks!
@Marramirez Thank you for the response. I tried to execute as per google documentation ,My case is when a file is created in storage , it should trigger cloud run job.
I created below workflow-