[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Resubmit to Different Machine

On Mon, Jun 04, 2007 at 02:30:02PM -0500, Rob Futrick wrote:
> Hello John,
> I believe you could write the following to keep a job from executing
> on a machine on which it had already tried running:
> Requirements=$(REQUIREMENTS) &&  (Machine=!=LastRemoteHost)

This should be:

Requirements = $(REQUIREMENTS) && (Name =!= LastRemoteHost)

Since LastRemoteHost includes the "vmN@" prefix, but Machine doesn't.

If you want to avoid all VMs on the last machine, this should work:

Requirements = $(REQUIREMENTS) && (stringListMember(Machine, LastRemoteHost, "@") =!= TRUE)

> The LastRemoteHost attribute should be set to the last host on which
> a job attempted to execute. It wouldn't keep a job from executing on
> all machines that it previously attempted to run on, but would at
> least prevent the last one.  Make sure you use =!= as it's undefined
> when the job hasn't run yet.

Look for match_list_length in the condor_submit man page for a hint on
how this might be extended to a short list of previous hosts.

Match_List_Length = 3
Requirements = $(REQUIREMENTS) && (Name =!= LastMatchName0) && (Name =!= LastMatchName1) && (Name =!= LastMatchName2)

Daniel K. Forrest	Laboratory for Molecular and
forrest@xxxxxxxxxxxxx	Computational Genomics
(608) 262 - 9479	University of Wisconsin, Madison