Forum OpenACS Q&A: Re: excessive time taken by proc

Collapse
Posted by Andrew Piskorski on
Yeah, it's a check, probably in AOLserver's C code somewhere (I forget and did not look just now) for how long your scheduled job ran. It ran some amount of time that AOLserver thinks is probably "too long".

You generally do not want to run slow jobs in the ns_sched thread, as no other ns_sched jobs can start until that one finishes. Instead, you want to use tell ns_sched to run the job in a newly created thread of its own where it can take as long as it wants without blocking ns_sched from starting new jobs. Thus the default warning "excessive time taken" warning message above.