Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1916

Double starts of job streams

    XMLWordPrintable

Details

    Description

      Current Situation

      • The first job stream start of a day will happen twice beginning with the second day after a JobScheduler Master restart.

      Desired Behavior

      • When a job stream starter has a single start time then the job stream should not start twice.

      How to reproduce

      • Create a job stream for a single start after sos.jobstream_period_begin (default after 00:00) and before any other job stream start.
      • Create a standalone job with a run-time between sos.jobstream_period_begin and the start of the job stream.
      • Restart JobScheduler Master.
      • Wait until the start time of the job stream arrives. The job stream will start twice.

      Maintainer note

      • Due to the reinitialization after the change of the period (00:00 UTC) the recorded last start of the job stream is set from X to zero. Then the calculated next start (from the day before) will be executed correctly and after this correct start the next start will be calculated once again, this time in a wrong manner to X. Then the job stream starts again at X instead of next_start(X).
      • This problem was originally addressed with JS-1897, but was not resolved. Therefore the current issue JS-1916 resumes this topic.

      Workaround

      • First Workaround: install a patch. A patch is available from https://download.sos-berlin.com/patches/1.13.7-patch/patch3_jobstream_plugin_1.13.7.jar. Please download the .jar file and copy the file to the $SCHEDULER_HOME/patches/lib directory of JobScheduler Master.
      • Second workaround: create a dummy job stream with a minimum of 2 jobs in row and a run-time indicating a single start: HH:MM where HH:MM is between the period begin and the first start of your job streams and after the first task end of the day. As per default the daily_plan job that starts at 00:01 and ends some seconds later, a good start time for the dummy job stream is 00:05. Then this this dummy job stream will start twice without an impact and all other job streams will start according to their scheduled time.

      Attachments

        Activity

          People

            ur Uwe Risse
            ur Uwe Risse
            Kanika Agrawal Kanika Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: