Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] quick questions
- Date: Wed, 27 Feb 2008 13:25:27 -0500
- From: "Robert E. Parrott" <parrott@xxxxxxxxxxxxxxxx>
- Subject: Re: [Condor-users] quick questions
Thanks for the second
On Feb 27, 2008, at 12:26 PM, Dan Bradley wrote:
Robert E. Parrott wrote:
A couple of quick one-offs on configs:
1) How does a user specify a max runtime on a job from their submit
file?
What do you want to achieve: putting the job on hold if it runs for
too
long? Or simply specifying the maximum amount of time the job
should be
given to finish before being preempted by higher priority jobs?
Here, I'd like to have users be able to specify the max total run
time for a parallel job before it's ended.
That way we can have users specify a sanity check on runtime for the
time being, until we establish some other policies.
But I would be very interested in the answers to the other cases you
pose as well. I assume for the first you want to use a PERIODIC_HOLD
expression, but the second would be useful as well.
rob
2) I'm trying to setup a list of "banned" users as such:
IsBannedUser = ( Owner =?= "baduser") || (Owner =?= "parrott" )
START = $(START) && ( IsBannedUser == FALSE )
however, using this configuration I (user "parrott") can still submit
and run simple jobs (after condor_reconfig -all).
What am I doing wrong here?
If IsBannedUser is not advertised as an attribute in the machine
ClassAd, then you must expand it as a macro when referring to it from
other places in the config file. Example:
START = ($(START)) && ( ($(IsBannedUser)) == FALSE )
Note how I have been careful to put ()'s around both macro
substitutions
to avoid mistakes in order of operations.
If you do want IsBannedUser to be advertised as an attirbute of the
machine ClassAd, then you can do the following:
STARTD_ATTRS = IsBannedUser
Then you can refer to it as you did above, but I would still recommend
putting ()'s around $(START).
--Dan
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/
==========================
Robert E. Parrott, Ph.D. (Phys. '06)
Associate Director, Grid and
Supercomputing Platforms
Project Manager, CrimsonGrid Initiative
Harvard University Sch. of Eng. and App. Sci.
Maxwell-Dworkin 211,
33 Oxford St.
Cambridge, MA 02138
(617)-495-5045