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

Re: [HTCondor-users] Do not run jobs during work hours

On 10/11/2016 3:20 PM, John G Heim wrote:
I'd like to do the same. Can you give the code yu used to  set up
STARTD_ATTRS for IsWeekday, IsDaytime, and IsBusinessHours? Thanks.

The HTCondor Manual has a section under "condor_startd policy configuration" that is called "Examples of Policy Configuration". See URL https://is.gd/yjxTw1

The examples in this section include a "Time of Day Policy" which you may find helpful. Or if you don't find it helpful, please make some suggestions on how we could improve that part of the manual for the next person. :)

thanks and regards,

On 10/11/2016 07:52 AM, Michael Pelletier wrote:
Be sure to double-check your system time zone – if you have your
machine set to UTC as it should be, in order to avoid daylight savings
time affecting log timestamp continuity, your work hour start and end
times will be off one or two hours in the Netherlands, depending on
the time of year.

I set up STARTD_ATTRS for IsWeekday, IsDaytime, IsBusinessHours, and
their opposites, which allows the users to reference them in their
submit descriptions, and helps simplify the syntax a bit:
IsBusinessHours = ( IsDaytime && IsWeekday), and IsAfterHours = (
IsNighttime || IsWeekend ).

In addition, if you don’t have preemption configured, then a job which
starts at 6:59am will continue to run to completion, and if it runs
for three hours, it will still be running at 9:30pm.

                 -Michael Pelletier.

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx
with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at:

Todd Tannenbaum <tannenba@xxxxxxxxxxx> University of Wisconsin-Madison
Center for High Throughput Computing   Department of Computer Sciences
HTCondor Technical Lead                1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132                  Madison, WI 53706-1685