[Twisted-Python] how to tap a DelayedCall?

Andrea Arcangeli andrea at cpushare.com
Fri Jul 1 22:20:44 EDT 2005


I'm still using my setup where I use mktap for the production system so
I tweak it with mktap -u/-g/Options() parameters
(twisted.python.usage.Options) and the tac -noy model for development
with default Option values, but I'm now having a problem with a delayed
call in the tap mode.

Somewhere inside the makeService hook I execute a reactor.callLater, and
that gives the following error:

WARNING: unserializing ephemeral twisted.internet.base.DelayedCall

(and of course it hangs too since that new callLater is now fundamental ;)

Now I think I can trivially move the callLater into the startFactory()
hook, and then it should work even with the tap file, but I wondered if
there was a more transparent way to make callLater work with tap files
like it does with the tac ones just fine.

I'm considering going away from the tap model, but first I'd like to see
the equivalent of mktap -u/-g and the other Option() parameters
available through tac files too (which isn't possible yet AFIK, twistd
doesn't take those params, and I don't want to reinvent locally yet
another getopt/Options mechanism, the Options configurable via mktap
were all I needed, except I don't need serialization just to pass
options, I only need the mktap option passing). Hints welcome.

Thanks and keep up the great work!

More information about the Twisted-Python mailing list