Re: RuntimeError: dictionary changed size during iteration

Sophana K <[email protected]> Fri, 7 Dec 2012 12:16:04 +0100
Newsgroups gmane.comp.python.webware
Message-ID <CADP5dB7eA34dMBTvEamGtQDwAeTSOOEenVFYbs_pk9auGWdiVw@mail.gmail.com>
--===============1382680615474993103==
Content-Type: multipart/alternative; boundary=bcaec54ee8c85f106c04d04157fc

--bcaec54ee8c85f106c04d04157fc
Content-Type: text/plain; charset=ISO-8859-1

Yes, I'm creating a Scheduler instance.
I didn't know I was supposed to use the one from the application.
Is it normal that a scheduler instance automatically does session sweeping?
Shouldn't the application create the task explicitely?

I have now fixed my code to use the existing scheduler.
Shouldn't you remove the previous fixes then?

Thanks for the hint.



On Thu, Dec 6, 2012 at 12:23 PM, Christoph Zwerschke <[email protected]> wrote:

> Am 06.12.2012 10:59, schrieb Sophana K:
> > I have some tasks scheduled every 30m and 24h.
> > I did nothing special about the session sweeper. Are they related to
> > taskKit?
>
> The session sweeper thread is started by the Application instance using
> its own instance of the TaskKit scheduler, available as
> Application.taskManager(). Do you use that scheduler instance or do you
> use your own? To me it looks as if you're either running the session
> sweeper twice or one of your tasks is doing something with the session
> store of the application. Otherwise you shouldn't see that error.
>
> -- 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>

--bcaec54ee8c85f106c04d04157fc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes, I&#39;m creating a Scheduler instance.=A0<div>I didn&#39;t know I was =
supposed to use the one from the application.</div><div>Is it normal that a=
 scheduler instance automatically does session sweeping?</div><div>Shouldn&=
#39;t the application create the task explicitely?</div>
<div><br></div><div>I have now fixed my code to use the existing scheduler.=
</div><div>Shouldn&#39;t you remove the previous fixes then?<br></div><div>=
<div><br></div><div>Thanks for the hint.</div></div><div><br></div>

<div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Thu, Dec 6=
, 2012 at 12:23 PM, Christoph Zwerschke <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:=
<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex">
Am 06.12.2012 10:59, schrieb Sophana K:<br>
<div class=3D"im">&gt; I have some tasks scheduled every 30m and 24h.<br>
&gt; I did nothing special about the session sweeper. Are they related to<b=
r>
&gt; taskKit?<br>
<br>
</div>The session sweeper thread is started by the Application instance usi=
ng<br>
its own instance of the TaskKit scheduler, available as<br>
Application.taskManager(). Do you use that scheduler instance or do you<br>
use your own? To me it looks as if you&#39;re either running the session<br=
>
sweeper twice or one of your tasks is doing something with the session<br>
store of the application. Otherwise you shouldn&#39;t see that error.<br>
<br>
-- Christoph<br>
<br>
---------------------------------------------------------------------------=
---<br>
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial<br>
Remotely access PCs and mobile devices and provide instant support<br>
Improve your efficiency, and focus on delivering more value-add services<br=
>
Discover what IT Professionals Know. Rescue delivers<br>
<a href=3D"http://p.sf.net/sfu/logmein_12329d2d" target=3D"_blank">http://p=
.sf.net/sfu/logmein_12329d2d</a><br>
<div class=3D"HOEnZb"><div class=3D"h5">___________________________________=
____________<br>
Webware-discuss mailing list<br>
<a href=3D"mailto:Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">Webware-discuss@li=
sts.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/webware-discuss" ta=
rget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/webware-discus=
s</a><br>
</div></div></blockquote></div><br></div>

--bcaec54ee8c85f106c04d04157fc--


--===============1382680615474993103==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
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
--===============1382680615474993103==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Webware-discuss mailing list
Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/webware-discuss

--===============1382680615474993103==--