Call setup and wait for the Deferred it returns, then you can call image as much as you like to get images streamed to you as iterations of Deferred chunks.

Call shutdown when done, unless you are using both a remote server and an external instance of TaskQueue.

Method __init__ Undocumented
Method setup Call at least once to set things up. Repeated calls with the same keywords, or with no keywords, do nothing. Keywords with a value of None are ignored.
Method shutdown Undocumented
Method run No summary
Method writeImage Call with the same arguments as run after fh, preceded by a writable fileName. It will be opened for writing and its file handle supplied to run as fh.
Method showStats Undocumented
def __init__(self, description=None, q=None):
Undocumented
@defer.inlineCallbacks
def setup(self, **kw):

Call at least once to set things up. Repeated calls with the same keywords, or with no keywords, do nothing. Keywords with a value of None are ignored.

ParametersN_valuesThe number of possible values for each iteration.
steepnessThe steepness of the exponential applied to the value curve.
workerA custom worker to use instead of asynqueue.wire.WireWorker.
ReturnsA Deferred that fires when things are setup, or immediately if they already are as specified.
@defer.inlineCallbacks
def shutdown(self):
Undocumented
@defer.inlineCallbacks
def run(self, fh, Nx, cr, ci, crPM, ciPM, dCancel=None, requester=None):

Runs a compute method on a remote Python interpreter to generate a PNG image of the Mandelbrot Set and write it in chunks, indirectly, to the write-capable object fh, which in this case must implement IConsumer. When this method is called by image.Imager.renderImage, fh will be a request and those do implement IConsumer.

The image is centered at location cr, ci in the complex plane, plus or minus crPM on the real axis and ciPM on the imaginary axis.

ReturnsA Deferred that fires with the total elasped time for the computation and the number of pixels computed.
See Alsorunner.Runner.run.

This method doesn't call setup; that is taken care of by image.Imager for HTTP requests and by writeImage for local image file generation.

@defer.inlineCallbacks
def writeImage(self, fileName, *args, **kw):

Call with the same arguments as run after fh, preceded by a writable fileName. It will be opened for writing and its file handle supplied to run as fh.

Writes the PNG image as it is generated remotely, returning a Deferred that fires with the result of run when the image is all written.

See Alsosetup and run
def showStats(self, runInfo):
Undocumented
API Documentation for AsynQueue, generated by pydoctor at 2022-11-17 13:13:24.