[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

Thanks Alan and Bruce. I am polling condor_q and checking the log files.

On 3/3/06, Bruce Beckles <mbb10@xxxxxxxxx> wrote:
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
> Condor jobs.

> 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
> (http://www.cs.wisc.edu/condor//tools/exerciser/) includes
> "summarize_condor_log", which includes a user log parser written
> in Perl.

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).

       -- Bruce

Bruce Beckles,
e-Science Specialist,
University of Cambridge Computing Service.
Condor-users mailing list