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

Double starts of job streams

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.13.5
    • 1.13.7
    • Job Streams
    • None

    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 with a single start after sos.jobstream_period_begin (default after 00:00) and before any other job stream starts.
      • 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 arrives. The job stream will start twice.

      Maintainer note

      • Warning: the underlying problem is not completely resolved with this issue, the below-mentioned patch does not prevent the problem from occurring. Instead, the issue is resolved with JS-1916.
      • 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).

      Workaround

      • First workaround: install a patch. A patch is available from https://download.sos-berlin.com/patches/patch_sos-jobstreams_JS-1897.1.13.6.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:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: