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

repeating order hang after first execution

    XMLWordPrintable

Details

    Description

      This issue occurs in the version 1.7.4177, where if a user has a job_chain with a shell job as its first node and has only one repeating order i.e. repeat="00:02", the order will run a first time and second time it will just hang without giviing out an error or a warning.

      To reproduce the problem (see also attached example file)

      1. create a job_chain i.e. job_chain1
      2. create a shell job i.e. job1 shell command echo "hello world"
      3. create an order i.e. order id 1, everyday begin="00:00", end="24:00", repeat="00:02"

      The order will run first time but second time It will just hang.

      Some workarounds :

      1. Recommended solution
        Change microscheduling to old microscheduling engine for the JobScheduler .
        For this add the following parameter into the ./config/scheduler.xml and restart the JobScheduler.
        ...
             <params>
                 ...
                 <param name="scheduler.old_microscheduling.enable_for_jobs" value="true"/>
             </params>
        ...
        
      2. Make the first job node an API job or give the shell job a monitor script.
         <?xml version="1.0" encoding="ISO-8859-1"?>
         <job  order="yes" stop_on_error="no">
            <script  language="shell"><![CDATA[
        echo "Hello World!!!"
         ]]></script>
            <monitor  name="js-1172-workaround" ordering="0">
                <script  language="javascript"><![CDATA[
        function spooler_task_before() {
        	return true;
        }
          ]]></script>
            </monitor>
            <run_time />
        </job>
        
      3. Create more than one order with a run_time assigned to the job_chain.

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              mp Mahendra Patidar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: