JSON Classes

GearmanWorker and GearmanClient classes that send/receive data in JSON format.

Please note that the default python json encoder has been extended to also encode Decimal data.

class gmtasks.jsonclass.GearmanWorker(host_list=None)[source]

Extend gearman.GearmanWorker to receive job data in JSON format.

class gmtasks.jsonclass.GearmanClient(host_list=None, random_unique_bytes=16)[source]

Extend gearman.GearmanClient to send job data in JSON format.

Previous topic

GearmanTaskServer

Next topic

Example server

This Page