Skip to Content

How do I prevent multiple instance of a Job running concurrently

Hi Community,

I have schedule a HR background job running periodically every 30 minutes.

The HR admin has requested that the if the job overruns 30min that the next job does not kick off.

Is there a way to prevent multiple instance of that job running concurrently on the system.

Kind Regards,

Chris

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 28, 2009 at 02:10 PM

    Hi,

    >Is there a way to prevent multiple instance of that job running concurrently on the system.

    Yes, but you will need to write some custom abap code for that. Yo ucan check is the job is already in status "active" or you ca n set an enqueue lock when runnin g the jon and check this lock.

    Regards,

    Olivier

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Christopher Geladaris

      Hi,

      >Problem is that it is SAP standard code - RPTARQPOST.

      No problem here. You can add your custom abap code as a first step of the job.

      Regards,

      Olivier

  • Sep 28, 2009 at 01:52 PM

    Not possible as far as i know... periodic jobs can't be set with those conditions as standard

    Regards

    Juan

    Add comment
    10|10000 characters needed characters exceeded