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

Command <show_state subsystems='folder standing_order' what='folders job_chain_orders' path='x'></show_state> returns an error when using include_file in holidays tag

    XMLWordPrintable

Details

    Description

      Current Situation

      • When executing the command
        <show_state subsystems='folder standing_order' what='folders job_chain_orders' path='x'/>
        and in the path x is an order with an include
        <holidays >
            <include  live_file="holiday.xml"/>
        </holidays>
        

        then the answer contains an error

        <orders>
        <order created="2015-12-03T14:10:58.265Z" id="create_maintenance" name="job_chain_create_maintenance_window,create_maintenance" order="create_maintenance" path="/prod/maintenance/job_chain_create_maintenance_window,create_maintenance" priority="0">
        <file_based file="C:/Users/ur/Documents/sos-berlin.com/jobscheduler/scheduler_current/config/live/prod/maintenance/job_chain_create_maintenance_window,create_maintenance.order.xml" last_write_time="2015-11-23T15:22:24.000Z" state="undefined">
        <ERROR code="SCHEDULER-399" text="SCHEDULER-399 Error in <include live_file="maintenance.xml"/>: ERRNO-2 ENOENT No such file or directory [open] [C:/Users/ur/Documents/sos-berlin.com/jobscheduler/scheduler_current/config/live/prod/maintenance/maintenance.xml]"/>
        <requisites/>
        </file_based>
        </order>
        

        even if the file holiday.xml exists.

      • Explanation
        • At the point in time when the order has been loaded by JobScheduler the holiday file was not available.
        • Modifying a holiday file does not cause JobScheduler to reload an order.

      Desired Behavior

      • The above <show_state> command should
        • include an error if the holiday.file does not exist.
        • show no errors if the holiday file does exist.
      • JobScheduler should consider added, updated and removed holiday files as specified with JS-419.

      Workaround

      • Update the order to force JobScheduler to reload the order and the referenced holiday file.

      Maintainer Notes

      • This issue requires no changes outside of JS-419.
      • This issue is maintained as a test case for JS-419.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: