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

<include live_file>, modified in previous daylight saving time period, does not keep JobScheduler busy anymore

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Blocker
    • Resolution: Fixed
    • None
    • 1.7.4
    • None
    • None
    • Windows

    Description

      Current Situation
      You have a job or an order with parameter from an included parameter file on a Windows system.

      job example
      <job >
          <params >
              <include  live_file="my_param.param.xml" node=""/>
          </params>
          ...
      </job>
      

      And this parameter file has a modification date before daylight saving time. If you restart the JobScheduler after daylight saving time then it does not start any more.

      The files in the attachment have these attributes. To reproduce the error

      • put the files into the live folder
      • restart JobScheduler

      Reason

      • For Windows the OS API calls _fstat and _fstati64 return wrong timestamps if dated in previous daylight saving periods.

      Solution

      Workaround
      All parameter files must have a new modification date.
      For example

      • open the parameter file in a text editor
      • type a space
      • delete the space
      • save the file

      or you use the powershell script from attached SetFileTime.zip.
      This script set the creation and modification date

      call example
      .\SetFileTime.ps1 "C:\ProgramData\sos-berlin\myscheduler\config\live" $true
      

      Attachments

        1. JS_1141_live.zip
          0.6 kB
        2. js-1141_log.zip
          483 kB
        3. pdir_scheduler_test.zip
          2.57 MB
        4. SetFileTime.zip
          0.8 kB

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              ur Uwe Risse
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: