cancel
Showing results for 
Search instead for 
Did you mean: 

Jobs should run sequential but only for some time

0 Kudos

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

gmblom
Active Contributor
0 Kudos

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

Answers (0)