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

start_when_directory_changed should work after the job was stopped

    XMLWordPrintable

Details

    Description

      Current Situation

      • You have a job with a start_when_directory_changed and this job will be stopped by the JobScheduler because its exit code is unequal 0.
      • Then you unstop the job via JOC (<modify_order job="..." cmd="unstop"/>).
      • Now the directory monitoring doesn't work.

      Desired behavior

      • the monitoring of the directory from start_when_directory_changed should work too after the job was stopped.

      Workaround

      • Configure the job with stop_on_error="no"
        job example with exit unequal 0 and stop_on_error=no
        <job  stop_on_error="no">
            <script  language="shell">
                <![CDATA[
        exit 5
                ]]>
            </script>
            <start_when_directory_changed  directory="./files" regex="\.txt$"/>
            <run_time />
        </job>
        

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            oh Oliver Haufe
            Oliver Haufe Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: