The out-of-the-box variable is JobStart, but thatâs a time stamp of when the job began, not a duration of how long itâs been running.
- Jaime
On Aug 24, 2023, at 3:42 PM, Anderson, Stuart B. <sba@xxxxxxxxxxx> wrote:
Jaime,
isn't there an out-of-the-box variable for this?
Thanks.
On Aug 24, 2023, at 1:37 PM, Jaime Frey via HTCondor-users <htcondor-users@xxxxxxxxxxx> wrote:
You can use the _expression_ that $(ActivationTimer) expands to:
ifThenElse(JobStart =!= UNDEFINED, (time() - JobStart), 0)
- Jaime
On Aug 23, 2023, at 4:37 PM, Michael Thomas <wart@xxxxxxxxxxx> wrote:
Is there an alternate token that can be used in place of ActivationTimer that will allow us to check if a job has been running for at least 4 hours before considering preemption (among other checks)?
--
Stuart
Anderson
sba@xxxxxxxxxxx
|