x
login Signup

Start a new job of schedule even if a job is still in progress in EF.

Hello,

We have a requirement where we created a schedule to run every 12 hours. And the job of schedule should start even if a job is still in progress. Currently, until the job is complete, the schedule is not launching a new job. How can this be achieved?

avatar image By AnudeepLalam 21 asked Apr 17 at 07:25 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

That is the how the schedule function is design, that is it waits for any running jobs kicked off by the schedule to complete before starting a new job. I will suggest an enhancement to enable the use case you describe. In the meantime, you can schedule a wrapper procedure that kicks off the actual procedure. The DSL below illustrates how to do that:

 project "Test",{
   // Procedure takes 2 minutes to run, but want to run it every minute without blocking
   procedure "Procedure to Schedule",{
       step "sleep", command: "sleep 120"
   }
   procedure "Wrapper Procedure",{
       step "run Procedure to Schedule",
       command: "ectool runProcedure --projectName \"$projectName\" --procedureName \"Procedure to Schedule\" "
   }
   schedule "Run every minute",
     interval: "1",
     intervalUnits: "minutes",
     procedureName: "Wrapper Procedure"
 }
avatar image By gregm 2k answered Apr 18 at 12:49 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.