Pure Python Gearman library.
See http://www.danga.com/gearman/ for more about Gearman.
Stable and production ready.
(maintenance transfered to http://github.com/Yelp/python-gearman) Gearman library for Python.
Home Page: http://github.com/mtai/python-gearman
License: Other
Pure Python Gearman library.
See http://www.danga.com/gearman/ for more about Gearman.
Stable and production ready.
The GearmanWorker does not have a mode in which it can issue a 'grab_job_uniq' request. This limits the utility of the python-gearman library. I forked the project and created a version of GearmanWorker that always issues a 'grab_job_uniq' request for my own needs. I am willing to modify my code to make this a parameter and submit a patch if anyone is interested in this functionality.
Let me know.
Thanks,
Talentless
The sample code on http://samuelks.com/python-gearman/docs/ does not work against v2.02 of the library. For example:
from gearman import *
worker = GearmanWorker(["127.0.0.1"])
worker.register_function("echo", lambda job:job.arg)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'GearmanWorker' object has no attribute 'register_function'client = GearmanClient(["127.0.0.1"])
res = client.do_task(Task("echo", "foo"))
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'GearmanClient' object has no attribute 'do_task'
I'm guessing this is because various methods and objects have been renamed.
If you have a gearman client like the one below and you want to submit many jobs, then you run into a memory leak.
client = gearman.GearmanClient(server)
for job in many_many_jobs:
req = client.submit_job(task, data)
...
The problem is in the python module client_handler.py, where every job is stored in a dictionary but never deleted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.