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

Re: [Condor-users] job completion status



You were right about the transaction. I have committed it, so was getting the exception.
I still have the problem of the status showing completed when the job is actually running.
However, I get all my output files back correctly.
Thanks,
Debolina

--- On Wed, 3/25/09, Matthew Farrellee <matt@xxxxxxxxxx> wrote:

From: Matthew Farrellee <matt@xxxxxxxxxx>
Subject: Re: [Condor-users] job completion status
To: "Condor-Users Mail List" <condor-users@xxxxxxxxxxx>
Date: Wednesday, March 25, 2009, 3:08 PM

This would be quite a bug.

JobStatus = {1: Idle, 2: Running, 3: Removed, 4: Completed, 5 Held}

Maybe your statusName is wrong?

As for the transaction, have you previously committed that transaction,
or has it possibly expired? Also, a transaction shouldn't be required to
retrieve files.

Best,


matt

Debolina Ray wrote:
> 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/
>
>
>
>       
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/