[Buildbot-devel] sleep in buildbot.process.buildstep.BuildStep
Dustin J. Mitchell
dustin at v.igoro.us
Fri Sep 6 12:49:55 UTC 2013
You are correct. Twisted Python is an asynchronous programming
environment, where just about everything occurs in the main thread.
So time.sleep is a big mistake.
There are some basic how-to guides for Twisted, and a style guide in
the Buildbot documentation (in the developer section). You will
probably want to use
yield task.deferLater(60)
within an @defer.inlineCallbacks-decorated method.
Among other things, see
https://twistedmatrix.com/documents/11.0.0/core/howto/time.html
Dustin
More information about the devel
mailing list