...
- File watching is configured by the JobScheduler Master. No configuration is required on the JobScheduler Agent.
- The JobScheduler Master holds the configuration of a job chain with a file order source that is assigned to the Agent.
The configuration for the examples below can be downloaded here: jua_file_watching.zip
File watching for job execution on the JobScheduler Master
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="ISO-8859-1"?>
<process_class max_processes="10" remote_scheduler="http://dmzhost:4445">
<remote_schedulers />
</process_class> |
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="ISO-8859-1"?> <job_chain file_watching_process_class="agent_in_dmz"> <file_order_source directory="/srv/files/1/in"/> <job_chain_node state="start" job="job1" next_state="continue" error_state="error"/> <job_chain_node state="continue" job="job2" next_state="success" error_state="error"/> <file_order_sink state="success" move_to="/tmp/jobscheduler/file/success" remove="no"/> <file_order_sink state="error" move_to="/tmp/jobscheduler/file/error" remove="no"/> </job_chain> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="ISO-8859-1"?> <job_chain process_class="agent_in_dmz"> <file_order_source directory="/srv/files/2/in"/> <job_chain_node state="start" job="job1" next_state="continue" error_state="error"/> <job_chain_node state="continue" job="job2" next_state="success" error_state="error"/> <file_order_sink state="success" move_to="/tmp/jobscheduler/file/success" remove="no"/> <file_order_sink state="error" move_to="/tmp/jobscheduler/file/error" remove="no"/> </job_chain> |
...