My requirement is to execute a cloud run job then schedule it so that execution of next job happens on successful execution of the first job.
How can I implement this in gcp as I have scheduled it through cloud schedular and disable the parallel execution.
For example:
- Job execution takes 5 minutes, and the schedule executes a job every 2 minutes.
Now there are two jobs executing in parallel for 2 minutes and third job is started to execute for 1 minute in parallel with 2 other jobs. Likewise, job one gets completed at 5 minutes and after 6 minute another job-4 started executing.
However, I need to execute job-1 first and complete its task and then job-2 will start executing once a job-1 gets completed likewise.
Please suggest any thing in Google cloud platform through which I can achieve this?
There are several way to implement this pattern and it depends on your requirements.