[Twisted-Python] deferred graph?

Andrew Bennetts andrew at bemusement.org
Mon Jul 16 17:54:03 EDT 2012


Dan Stromberg wrote:
[…]
> Can anyone think of other ways of getting to the bottom of this?  Perhaps
> some field in a deferred or deferredList I can introspect to get better
> specifics?
> 
> Is monkey patching an identifier of some sort into each deferred
> reasonable?  The intent would be to make it easier to match up the
> lingering DeferredLists with the place they're created.

That's the sort of thing that calling twisted.internet.defer.setDebugging(True)
is meant to help with.  If you turn that on, you can probably introspect the
stuff it creates and use that in your debugging tool.  (That's a bit ugly, but
probably not significantly worse than introspecting other private attributes
Deferred.)

-Andrew.



More information about the Twisted-Python mailing list