You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Parameter Sets for Multiple Jobs

Question:

How to identify specific parameter sets for multiple jobs with same name?

Answer:

If multiple jobs share the same job implementation then every job can have its own parameter sets.

See this example:

<job name = "cleanup_sos_files" title = "Remove temporary files">
  <params>
    <!-- remove temporary files from the given directory otherwise
    from the users temp directory  -->
    <param name = "file_path" value = "/tmp"/>
    <!-- remove temporary files with the given prefix -->
    <param name = "file_specification" value = "^(sos.*)"/>
  </params>
  <script language = "java"
          java_class = "sos.scheduler.job.JobSchedulerCleanupFiles"/>
  <!-- cleanup files in the given interval of seconds (4 hours) -->
  <run_time let_run = "yes"
            begin   = "06:00"
            end     = "22:00"
            repeat  = "04:00:00"/>
</job>
<job name = "cleanup_tmp_files" title = "Remove temporary files"/>
  <params/>
    <param name = "file_path" value = "/tmp"/>
    <param name = "file_specification" value = "^(tmp.*)"/>
  </params/>
  <script language = "java"
          java_class = "sos.scheduler.job.JobSchedulerCleanupFiles"/>
  <!-- cleanup files in the given interval of seconds (24 hours)-->
  <run_time let_run= "yes"
            begin   = "00:00"
            end     = "24:00"
            repeat  = "24:00:00"/>
</job>
              
  • No labels