[Stackless] can I run the scheduler in debug mode?

Stephan Diehl stephan.diehl at gmx.net
Wed Feb 28 14:15:31 CET 2007


Paul Sijben wrote:
> I am seeing the following behaviour: I am creating tasklets left, right
> and center but at one point I am going through same motions (using
> t=stackless.tasklet(object) followed by t.setup()) but my tasklet is
> never activated.
> 
> The code of the tasklet is successfully executed eslewhere in the code,
> it is just this particular instance, and this instance is the key to
> continuing my flow so at one point the code halts while I know this
> tasklet needs to become runnable.
> 
> When I try to force its activation by executing  run() on the tasklet I
> never get back to the parent tasklet. Naturally I am wondering what is
> going on here.
> 
> So is there a way to run the scheduler in debug mode so it tells me why
> it is not scheduling this tasklet?

You might want to try the 'stackless.set_schedule_callback' function.
it takes a function f(prev, next) . 'f' will be called everytime there 
is an scheduling event. That's the closest you'll get for debugging.

> 
> Paul
> 


_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list