...
Code Block | ||||
---|---|---|---|---|
| ||||
Usage: jobscheduler_agent.cmd command [options] command: start [options] stop [options] abort [options] restart [options] status [options] debug [options] kill [options] install-service [options] remove-service [options] start-service [options] options: -http-port=<number> | default: 4445 -timeout=<number> | in seconds; only for stop and restart |
Command Line Options
-http-port=<number>
- is the HTTP port that the Agent is listening to in order to receive requests from a JobScheduler Master:
jobscheduler_agent.cmd|sh command -http-port=####
- where
####
is the numeric port.
- Without this option being used the port defaults to 4445.
- Should you want to specify a port then the following precedence applies:
- First precedence: command line option
- Second precedence: environment variable
SCHEDULER_HTTP_PORT (see below)
- Third precedence: use of default value
- is the HTTP port that the Agent is listening to in order to receive requests from a JobScheduler Master:
-timeout=<number>
- This option can be used to specify the number of seconds that the Agent will wait for tasks to stop.
- This option can be applied for
stop
andrestart
commands. - The Agent sends a SIGTERM signal to the taksk and having reached the timeout a SIGKILL signal will be sent to stop any tasks immediately.
...
Warning |
---|
During the service installation it tries to copy the executable file for the Windows service to the .\service directory. This operation could fail with the error "Access denied" if you have extracted the JobScheduler Universal Agent under e.g. C:\Program Files\. In this case you can change the permissions of the .\service directory or open the command prompt with elevated administrator permissions and execute the above command once more. |
...
Warning |
---|
During removal of the service it tries to remove the executable file of the Windows Service from the .\service directory. This operation could fail with the error "Access denied" if you have extracted the JobScheduler Agent under e.g. C:\Program Files\. In this case you can change the permissions of the .\service directory or open the command prompt with elevated administrator permissions and execute the above command once more. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
2015-04-28 16:11:24.462 +0200 [DEBUG] akka.io.TcpListener - New connection accepted ...... ...... 2015-04-28 16:13:39.231 +0200 [DEBUG] spray.can.server.HttpServerConnection - TcpConnection terminated, stopping |
Remote
...
File Watching
To configure remote file watching, see JobScheduler Agent TP3 provides the process_class
attribute for the job_chain
element:
Code Block |
---|
<job_chain process_class="agent">
<file_order_source directory="/srv/files/in"/>
<job_chain_node state="start" job="job1"/>
</job_chain> |
Running the remove file order example
- Download agent_file_order.zip
- Extract the archive into the live folder of your JobScheduler Master
- edit files:
- agent.process_class.xml: configure the host and port of your agent
- job_chain1.job_chain.xml
- set the input directory
- job1.job.xml
- linux users: make adjustments to the shell script
- job2.job.xml
- set the output directory
- linux users: make adjustments to the shell script
Failed Tests
Universal Agent - Remote File Watching:
Failed Tests
In case that you receive an error when running jobsIn case that you receive an error in JOC when running the job, then let us know by use of the SourceForge ticket system:
...