Coder Social home page Coder Social logo

django-gearman's People

Contributors

fwenzel avatar jbalogh avatar sunils34 avatar toudi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

django-gearman's Issues

No gearman modules found!

I run :

python manage.py gearman_worker -w -5

Appear the error message:

No gearman modules  found!

I 'm sure the gearman installed.

Checking state of a background Job

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.

Can't use GearmanClient from same directory as gearman.py

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.