Skip to Content

Jobs should run sequential but only for some time

Jan 26, 2017 at 07:55 AM


avatar image


I have a chain with several steps which runs one by one with statushandler Error=Continue. That works fine.

Usually the Jobs have a runtime less than 1 min.

If the runtime of a job is greater than 4min, the next job should start immediatally (parallel).

How could I handle this?

Best regards
Dana Ullrich

10 |10000 characters needed characters left characters exceeded
Former Member

Create a submit frame of every 4 min and submit the job with using submit frame.

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
G.M. Blom Feb 07, 2017 at 09:17 AM

Hi Dana,

This is an interesting case, the only option I see is putting a wrapper Redwood Script job around the individual jobs that submits the child and waits for 4 minutes max.

  Job j = jcsSession.getJobDefinitionByName("<your job definition>").prepare();
  jcsSession.waitForJob(j, 4*60*1000);

This will leave Job j running as a child, but it will Complete itself, allowing the chain to continue.

Regards Gerben

10 |10000 characters needed characters left characters exceeded