Oozie - How to postpone a workflow until another one completes

567 views Asked by At

I have a bundle that runs several coordinators. While one (and specific one) of these coordinators runs (a daily time-scheduled workflow), no other one has to start. Is there a way to postpone or cancel all other coordinators until this one completes ?

Example:

  • C1: Runs once a day at 06:00. Has to run alone!
  • C2: Runs every 15 minutes (and take about 5 mins to complete)
  • C3: Runs once a day at 04:00 (and could take more than 2 hours to complete)

What I need is:

  • C1 starts only if C2 & C3 are not running, else wait for its completion to start
  • C2 starts only if C1 is not running, else cancel itself

If it's not possible, is there a workaround ?

0

There are 0 answers