Skip to Content

Multiple jobs for same program are not overlapping or affecting each other?

We have a custom program in ECC that sends email notifications for different invoice statuses and updates the statuses in a custom table for each invoice, inside the program. This custom program needs to be scheduled multiple times such that the multiple job runs might overlap with each other.


How can we ensure that the multiple job runs for the same program are not overlapping with each other and stopping the processing of any of the multiple job runs?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 04, 2017 at 01:54 PM

    You should use Enqueue / Dequeue, to be sure that only one program access to selected data. With enqueue, data is blocked in the current process. If another program will try to access same data we can wait when other program ends processing or wait in the queue.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 05, 2017 at 06:46 AM

    Another technique is to have each job reschedule itself. You would have to build your monthly/weekly variants into your rescheduling code.

    Add comment
    10|10000 characters needed characters exceeded