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

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

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.

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:

John G. Heim; jheim@xxxxxxxxxxxxx; sip://jheim@xxxxxxxxxxxxxxxx