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

[HTCondor-users] Queries regarding htcondor policies



Hello Experts,

using policy examples from [1] on versionÂ9.0.17Â

- How to use multiple policies? If I put the policies in the following manner it's ignoring the runtime limit policy, maybe memory policy overwriting it?ÂÂ

use POLICY : Preempt_if_Runtime_Exceeds(30)
MEMORY_EXCEEDED = (isDefined(MemoryUsage) && MemoryUsage > RequestMemory)
use POLICY : PREEMPT_IF(MEMORY_EXCEEDED)

- What's the difference betweenÂHold_if_Runtime_Exceeds andÂPreempt_if_Runtime_Exceeds,

In my test both are putting the job on hold, I was expecting the job to be killed in the latter case. Only difference is the Holdreason message.Â

Scenario 1:Â

use POLICY : Hold_if_Runtime_Exceeds(30)

Message:

Error from slot1_1@xxxxxxxx: Job exceeded pool time limit

Scenario 2:

use POLICY : Hold_if_Runtime_Exceeds(30)

Message: It includes time 30 seconds

Error from slot1_4@xxxxxxxx: runtime exceeded maximum (30 seconds)


[1] https://htcondor.readthedocs.io/en/v10_0/admin-manual/configuration-templates.html?highlight=policy#configuration-template-examples


Thanks & Regards,
Vikrant Aggarwal