Details
-
Fix
-
Status: Approved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
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>