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

Re: [Condor-users] job completion status



I could track the status of job using :

while(true){

 

ClassAd ad = new ClassAd(schedd.getJobAd(cluster, job).getItem());

 

int status = Integer.valueOf(ad.get("JobStatus"));

System.out.println("Job is " + status+":"+statusName[status]);

if(status==4)// running{

{

 

FileInfoArray files2 = xact.listSpool(cluster, job);

 

for (FileInfo file : files2.getItem()) {

 

xact.getFile(cluster, job, file.getName(), Integer.valueOf((int) file.getSize()), new File(file.getName()));

}

xact.closeSpool(cluster, job);

break;

}

}
 
But the jobstatus prints as completed even though the job is still running.
Also listSpool method gives an Invalid Transaction exeption.
 
Is there a way to solve this and get the output file back from the spool.
Thanks,
D


--- On Wed, 3/25/09, Debolina Ray <talk2roon@xxxxxxxxx> wrote:

From: Debolina Ray <talk2roon@xxxxxxxxx>
Subject: [Condor-users] job completion status
To: condor-users@xxxxxxxxxxx
Date: Wednesday, March 25, 2009, 9:17 AM

Hello,
What is the way to know when a job has finished running?
I want to check the status of the job completion and then transfer the output file to the client using :

FileInfoArray files1 = xact.listSpool(cluster, job);

for (FileInfo file : files1.getItem()) {

 

xact.getFile(cluster, job, file.getName(), Integer.valueOf((int) file.getSize()), new File(file.getName()));

}

 

Is there a way to monitor the status of the job and get the output files then?

Thanks,

D

 

 



-----Inline Attachment Follows-----

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