Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We found out that if a job has parameters defined in an external XML file then changes to those parameters are not reflected until we "touch" or "change" the job XML.

Job with external parameter file

Code Block
languagehtml/xml
 <job idle_timeout="0" order="yes" process_class="/CE_MAINTENANCE" stop_on_error="no" tasks="1"
    title="[CE] This job removes all records in the tables SCHEDULER_HISTORY, SCHEDULER_ORDER_HISTORY,
    DAYS_SCHEDULE, SOS_FTP_FILES which are older than the value of the parameter
    delete_history_interval" visible="yes">
    <params>
       <include file="/opt/gts/var/lib/JobScheduler/CleanupHistoryConfig.xml"/>
    </params>
    <script java_class="com.sos.jitl.housekeeping.cleanupdb.JobSchedulerCleanupSchedulerDbJSAdapterClass" language="java"/>
    <monitor>
    <script java_class="gts.prisma.service.batch.common.LogInfoMonitor" language="java"/>
    </monitor>
 </job>

...

If you create a link in the live folder to the external parameter file then this should work as you expected.

See also