Skip to Content
0

Jobs should run sequential but only for some time

Jan 26, 2017 at 07:55 AM

43

avatar image

Hello,

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

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

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

1 Answer

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

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.persist();
  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

Share
10 |10000 characters needed characters left characters exceeded