Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor corrections to text

...

What happens if the connection to your remote host is broken, breaks while a script is still running? How can the JobScheduler Job job which started the remote script know about that?

What happens if a remote script has finished, but the JobScheduler task which started the process remotely can not cannot know about that (e.g. because of a temporarily broken network connection).

The SSH Session Management provides a solution for dealing with that type of issues. It provides : it provides the possibility to configure of configuring an additional JobChain job chain to check for orphaned processes on the remote host as well as check for orphaned tasks.

You can configure your existing JobChain for your SSH jobs SSH job chain to start the monitoring JobChainjob chain, which then will monitor the task of your original JobChain job chain as well as the processes started on the remote host via SSH.

Mode Of Operation

To configure your SSH Job to use the SSH Session Management you have to configure your SSH Job and define a cleanup job chain for the cleanup work.

The feature is available only with requires the use of the JSch implementation by JCraft. To configure your SSH Job to use the JSch implementation, see See How To - Usage of the SSH Job (SOSSSHJob2JSAdapter) with JCraft's JSch . for more information about configuring your SSH Job to use the JSch implementation,

The SSH Session Management will carry out one of the following actions after checking the remote processes and JobScheduler tasks:

  • if a remote process is running and the JobScheduler Task is still alive:
    • do nothing, the cleanup job chain goes to a setback condition and waits for another start
  • if a remote process is running but the JobScheduler Task is no longer available:
    • the cleanup job tries to end the process on the remote host
  • if a remote process is no longer available but the JobScheduler Task is still running:
    • the cleanup job ends the Task immediately
  • if a remote process and the JobScheduler Task are not available anymore
    • do nothing, the cleanup job ends

...