Versions Compared

Key

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

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

 

To reflect changes that are made in a parameters file that is included within a job, the file must be located in the live folder and must be inserted with the live_file attributeWe 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 live_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>

...