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

Re: [Condor-users] CurrentTime = ?



Nothing explicitly sets CurrentTime in a job ad. When Condor needs to evaluate an expression containing CurrentTime, it calls the standard C function time() and uses the result as the value of CurrentTime.

 -- Jaime

On May 21, 2007, at 10:01 AM, Jones, Torrin A ((US SSA)) wrote:

Exactly. That's why I need to set CurrentTime myself instead of relying
on the Condor DRMAA library to do it.  I never figured out how to find
out what the current time is (from Condor), but I did figure out how to
calculate it correctly using QT.

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Jaime Frey
Sent: Friday, May 18, 2007 11:48
To: Condor-Users Mail List
Subject: Re: [Condor-users] CurrentTime = ?


On May 17, 2007, at 10:55 AM, Jones, Torrin A ((US SSA)) wrote:

I just started using Condor in the last month.  I'm using the drmaa
library to submit jobs to condor.  However setting DRMAA_START_TIME
doesn't work correctly.  The code is hardcoded to always set . . .

PeriodicRelease     =(CurrentTime > 0)
Hold                = True

So I'm working around the problem using
DRMAA_NATIVE_SPECIFICATION.  The
problem is I need to calculate the time to set.  Apparently, it's the
difference in seconds between the time you want to run and January 1,
1970 at 00:00.

However when I run the job, it always runs right away.  That means my
calculation is incorrect. I've checked it over, and it seems correct.
So my question is, how can I get what CurrentTime is set to from
condor?

CurrentTime is a special attribute that represents the current time
when an expression is evaluated. It's represented as the current unix
time (number of seconds since Jan 1, 1970). So you'd want an
expression like this:
PeriodicRelease = CurrentTime > [time you want your job to start at]

The hardcoded expression above is strange, as it will always evaluate
to True.

+--------------------------------+-----------------------------------+
|           Jaime Frey           | I used to be a heavy gambler.     |
|       jfrey@xxxxxxxxxxx        | But now I just make mental bets.  |
| http://www.cs.wisc.edu/~jfrey/ | That's how I lost my mind.        |
+--------------------------------+-----------------------------------+


_______________________________________________
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/

_______________________________________________
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/

+--------------------------------+-----------------------------------+
|           Jaime Frey           | I used to be a heavy gambler.     |
|       jfrey@xxxxxxxxxxx        | But now I just make mental bets.  |
| http://www.cs.wisc.edu/~jfrey/ | That's how I lost my mind.        |
+--------------------------------+-----------------------------------+