HOST_OF_jobId and HOST_OF_ANTECEDENT

Sometime, a job needs to run on the same host as another job. This condition can be expressed with the special resource "HOST=HOST_OF_<jobid>" and " HOST=HOST_OF_ANTECEDENT".

If a job requires "HOST=HOST_OF_<jobid>", it will be run on the same host as the job with the specified id. If such job does not exist, the job will not run ever.

If a job requires "HOST=HOST_OF_ANTECEDENT", the scheduler looks for any of the jobs that generate at least one input of the job, and schedules the job on the same host. If the job has no antecedent, then the job will never run.

Examples of HOST= HOST_OF_ANTECEDENT

In the following example, both jobs are going to be executed on the same host.
J vw cp aa bb
R "HOST=HOST_OF_ANTECEDENT"
J vw cp bb cc
In the following example, the job j2 runs on the same host as job j1
R "RAM/10"
set j1 [J vw prepare_host_for_job]

R "RAM/1000 License:expensive HOST=HOST_OF_$j1"
set j2 [J vw run_big_job]