[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] How to check whther jobs have finished executing when submitted from a program
- Date: Fri, 3 Mar 2006 01:01:47 +0000 (GMT)
- From: Bruce Beckles <mbb10@xxxxxxxxx>
- Subject: Re: [Condor-users] How to check whther jobs have finished executing when submitted from a program
On Thu, 2 Mar 2006, Alan De Smet wrote:
Is there a way to retrieve the status of the jobs sumitted i.e.
whether they are idle, running or finished from within the
program? I mean something like condor_q but i need to capture
the job status in the program.
There are several ways we recommend to programmatically watch
Finally, you can watch the job's user log (the log created when
you add "log=/path/to/my/log" to your jobs). The file was
specifically designed to be reasonably easy to parse.
condor_dagman and condor_wait use this interface. Condor
provides a C++ interface (see include/user_log.README in your
Condor installation), although rolling your own for simple
purposes isn't too hard. For example, the Grid Exerciser
"summarize_condor_log", which includes a user log parser written
There is also a Condor Perl module (Condor.pm) supplied with Condor
(installed in $(RELEASE_DIR)/lib) which does this. You might be able to
make use of that (either using it to submit/monitor jobs for you or
cannibalising its code for yourself).
University of Cambridge Computing Service.