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

Re: [Condor-users] Condor job goes in suspended mode if C program contains Sleep statements



On 05/25/2011 01:02 AM, Raman Sehgal wrote:
Hello Condor users,

I have written a very simple C program that will print
some message and then sleep for one second.

But when i submit this job using Condor then
my all the jobs goes to Suspended mode. I dont know
why ?

So i want to know is there any restriction in Condor that we
can submit batch jobs which containing sleep statements.

or is there any other solution so that this job executes properly


*My program is as below:*

#include<stdio.h>
#include<unistd.h>
int main()
{
int i=0;
for(i=0;i<10;i++)
{
printf("Testing Sleep\n");
sleep(1);
}
return 0;
}



Regards,
Raman Sehgal

I'm assuming you mean the slot (listed by condor_status) does to the Suspended state when your job is running. Chances are you have a SUSPEND policy (condor_config_val -v SUSPEND) that is getting tripped.

If you're just starting out, give yourself a policy that will always let your jobs run, when you're more settled, lock it down. Start with this on your execute nodes (those running the condor_startd) -

START = TRUE
SUSPEND = FALSE
PREEMPT = FALSE
KILL = FALSE

Best,


matt