Author Topic: Making sure job's are executed on the same machine/rendernode  (Read 8087 times)

moose

  • Newbie
  • *
  • Posts: 1
Making sure job's are executed on the same machine/rendernode
« on: February 16, 2011, 05:59:27 PM »
Hi!

Been reading and searching but haven't found any answer to my question.
How can I in python, submit dependency jobs and make sure they are performed on the same machine/node? Without hardcoding it's name of course.

Thanks in advance!
« Last Edit: February 16, 2011, 06:10:06 PM by moose »

shinya

  • Administrator
  • *****
  • Posts: 232
Re: Making sure job's are executed on the same machine/rendernode
« Reply #1 on: February 17, 2011, 02:52:06 AM »
Hi moose,

There's no easy built-in way, but you should be able to do that by modifying dependent jobs once the first job starts, by calling "qb.modify" inside the back-end of the first job.

You'd need to submit all jobs into the same pgrp, then once your first job starts, you can modify the "hosts" parameter of all jobs in the pgrp to the hostname of the worker that the first job is running on. 

Beware that preemption can complicate things...