Tuesday, May 29, 2012 7:58 PM
I have set up a script that looks generally like this:
//if (answer = A set up this job to run like this...)
//if (answer = B set up the job to run like this....)
//if (answer = C set up the job to run both A and B.)
If I answer with A the job will run to completion and I will trigger the end using > if (Job.State == JobState.Finished)
If I answer with B the job will just continue to run even though I have the same > if (Job.State == JobState.Finished) included in this section of the code.
If I answer with C the "A" part will finish, and the second job will fire up, but will just continue as it does when running job "B" by itself. This is not unusual as the same code from A and B is used to make up C.
My question I guess is what would cause the scheduler to not see the Job.State as finished? What triggers the Job.State finished within HPC? I am using the same code in both A and B to check if the job is finished or not, but get different results. The rest of the code for A and B are not the same, but close. I can't seem to figure out what would cause HPC to not see that the job is completed.
Tuesday, May 29, 2012 8:20 PM
You may have to refresh the job object to get the latest status, could you try that?
I'd say you need to debug your script carefully at the point.