fwenzel / django-gearman Goto Github PK
View Code? Open in Web Editor NEWA convenience wrapper for Gearman clients and workers in Django/Python
A convenience wrapper for Gearman clients and workers in Django/Python
When setting this up I get the error: cannot import name Task
I don't see a license. Revenge!
Hi Everyone!
I have a question about Background Jobs. For instance in the asynchronous example "gearman_example_client.py", the worker continues to work on the jobs after the applications already exits.
Now I want not to exit the application. Instead I want to continuously (for example once every second) check and wait if a result from a job is available. So is there a way to ask django-gearman about the state of a job using something like a job handle or job name?
Thank you very much!
Note: I want to create a web server where our colleagues can initiate calculations as workers, which are managed by a gearman server. The result of these calculations will then be visualized on the web server as soon as they are done by the workers.
Hi,
thanks for django-gearman! I ran into an issue and I'm wondering how you would solve it: in one application directory, I have a background job defined in gearman.py while from my model's save method (in models.py) I want to dispatch a background task.
Now, when I try to do an "from gearman import GearmanClient" in models.py I get a NameError because Python looks in gearman.py from my application directory instead of the gearman module installed site-wide. Have you run into this issue? I solved it by forking django-gearman and renaming gearman.py to gearjobs.py (gearman_jobs is taken as well). Is there a better way?
Cheers,
Jonas
I would like to use your code, but I am an American.
I run :
python manage.py gearman_worker -w -5
Appear the error message:
No gearman modules found!
I 'm sure the gearman installed.
You are not complying with all the clauses of the MPL. Particularly, I do not see any license blobs in your source code. Case in point: http://github.com/fwenzel/django-gearman/blob/master/django_gearman/decorators.py
Feel free to wontfix. ;)
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.