Am 08.12.2012 09:51, schrieb Sophana K:
> My tasks do not access the sessions. (Why would they?)
> As it is a new behaviour, (I was using 0.9) a look at the changes could
> help...

In 0.9 and 1.0 the session sweeper loops run over the keys list, not 
over the dictionaries, simply because older Python versions did not 
support that. So the problem with duplicate session sweepers might well 
have existed, you just didn't notice it.

> Could it be the scheduler instances sharing some global task lists?

I thought about that too, because it would be an explanation, but no, 
they don't.

One explanation for the duplicate session sweeping could be that your 
tasks inherit from WebKit.Tasks.SessionTask instead of TaskKit.Task. Or 
that you inherit from Application and run __init__ twice.

To debug the problem, you can put some print statement in the __init__() 
and run() methods of SessionTask and see when it is instantiated (should 
be instantiated once at the start) and how often it is run (should run 
once every 10 minutes, depending on your SessionTimeout).

-- Christoph

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to