I’m a little confused on how self.server.status() works. I thought you did the following:
J = Job()
jid = self.server.submit(J)
js = self.server.status(JOB, id=jid)
js[‘exec_vnode’] would give you the exec_vnode of the job.
Looking around at different tests, I found the get_vnodes() member function of the Job() object. Looking at the PTL code, it picks up the exec_vnode from self.attributes[‘exec_vnode’]. Where is that set? Is it set via a self.server.status() call?
Usually, if I need multiple copies of the same job submitted, I’ll create a job object once and pass it through self.server.submit() multiple times. Is this incorrect practice? Does the job object get used again after submission? If so, I am incorrectly writing my tests.
I appear to be confused. I’d be greatful for any help.