[Stackless] Stackless with ZODB
tismer at stackless.com
Fri Sep 21 18:21:04 CEST 2007
Johan Carlsson wrote:
> On 9/21/07, Christian Tismer <tismer at stackless.com> wrote:
>> Johan Carlsson wrote:
>>> On 9/19/07, Johan Carlsson <johanc at easypublisher.com> wrote:
>>> Ok, here's a problem I found.
>>> If the tasks are blocked when I store them in the ZODB
>>> I can't add them back to the schedule with insert().
>>> Is there another way to get a unpickeled tasklet into the scheduler?
>> Not yet. Right now, the idea is to pickle the according
>> channel as well.
> Yes, I might be the case that I don't have a problem...
> Is this correct:
> If i have a pickled channel with blocked tasklets,
> when the tasklets get activated again the may put them
> self back in the scheduler, for instance by calling schedule()?
There is actually not a provision to change the states ob
blocked tasklets. Maybe it is worth adding if needed.
But the idea behind channels is to pickle them with
their tasklet chain, and to unpickle them exactly in that
state. Insertion is automatic, just rend/receive on the channel. :-)
ciao - chris
Christian Tismer :^) <mailto:tismer at stackless.com>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the Stackless