Forum OpenACS Q&A: Response to Long running procs in aolserver?

Collapse
Posted by Dan Wickstrom on
Starting it from a scheduled proc is okay, but you might want to consider running it in a detached thread, so that it doesn't block anything else.  IIRC, the scheduler is a single thread, so when you have something running for 10 minutes nothing else will be scheduled during that time.  Using a mutex and some nsv_set vars to ensure that only one detached thread is running at a time is probably a wise thing to do, if the possiblity exists that the scheduled procs might start stacking up due to blocking on external resources.