Skip to Content

Jobs should run sequential but only for some time


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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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

    Add comment
    10|10000 characters needed characters exceeded