Suppose I am running in a multiprocess environment but would like to
run a "scheduler".  Of course, each process starts its own scheduler,
so I end up with this running once for each process.

Can you think of a way around this?  I only want one process to start
the scheduler....

import tgscheduler
import logging
log = logging.getLogger(__name__)

def kent():
    log.info("run")

tgscheduler.start_scheduler()
tgscheduler.add_interval_task(kent,15, initialdelay=30)

Any ideas?


Thanks,
Kent


-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to