Skip to main content
cqlearner
Level 2
Oct 16, 2015 2:29 AM UTC
Solved

Sequential scheduling of jobs

Hi experts,

I have several jobs in my system that runs at specific period of time define in OSGI config. But what I really want is add dependency between these jobs. In other words, I want job 2 to wait until job 1 is finished, job 3 to wait on job 4 and so on.  I tried couple of experiments with "canRunConcurrently", but it seems that it only applied to same job name and instance. 

Any pointers will be greatly appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

How strict is the requirement to run these jobs at specific times? If it's possible to run them one after the other you should use a workflow. If you have strict requirements regarding starting time of the job and the dependencies, you probably have to implement it on your own. I don't see any possile ootb feature.

kind regards,
Jörg

2 replies

WhoaShekhar
Level 10
Oct 16, 2015 2:29 AM UTC

Hi there,

Thanks for reaching out to Adobe Community.

Please go through the below community article and see if it helps:

Scheduling Adobe Experience Manager Jobs using Apache Sling

Thanks!

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

How strict is the requirement to run these jobs at specific times? If it's possible to run them one after the other you should use a workflow. If you have strict requirements regarding starting time of the job and the dependencies, you probably have to implement it on your own. I don't see any possile ootb feature.

kind regards,
Jörg

Translate