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

[condor-users] globally unique job identifiers

I have been writting a quick c# class library to allow programmatic submission / query / control functionality essentially by parsing the outputs from condor_submit, condor_q, condor_rm and condor_prio (so far)

this is working well except the use case internally is central management of all submitted jobs (an end user or a batch process can submit a job and the submitted job is linked to an entry in a database)

this lets me track timeouts / runaway jobs and take the appropriate action (resubmit for example)

to do this I needed a way to identify a job and foolishly assumed that clusterId and ProcessId would give a unique id for a job in a pool. This turns out not to be the case and that it only gives it unique to the user who submitted the job. (which I see the rationale for given the source of the project)

I am left with three options

1) fake the submission user in some way even when running on another machine (don't even know if this is possible)
2) record the user which submitted the job in the database as well and use -global and user constraints
3) add a new attribute to all class ads with a Guid which is stored in the database, use this in any queries (along with global)

3 sounds like the best option so far but if condor has an internal unique id is there any way I can easily get it / query on it?



Gloucester Research Limited believes the information 
provided herein is reliable. While every care has been 
taken to ensure accuracy, the information is furnished 
to the recipients with no warranty as to the completeness 
and accuracy of its contents and on condition that any 
errors or omissions shall not be made the basis for any 
claim, demand or cause for action.

Condor Support Information:
To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
unsubscribe condor-users <your_email_address>