PolicyStat / jobtastic

Make your user-responsive long-running Celery jobs totally awesomer.
http://policystat.github.com/jobtastic/
MIT License
644 stars 61 forks source link

Add Beaker caching support for usage with Pyramid #36

Open tsemerad opened 10 years ago

tsemerad commented 10 years ago

Does Jobtastic currently work in Pyramid? The documentation says it works in Django and Flask, which gives me the assumption it is fairly framework-agnostic (just like Celery). If there are known problems with it working in Pyramid that would be nice to know. Otherwise, if it does work, I'll go ahead and implement it, and write up an example.

winhamwr commented 10 years ago

Hello!

Does Jobtastic currently work in Pyramid?

You would need to do some hacking to make it work in Pyramid. The main issue is that Jobtastic needs a cache object in order to do coordination across multiple Celery workers. Right now, we just have built-in support for Django's cache and for Flask's werkzeug cache.

Adding support for Beaker and pyramid_beaker would be totally doable, though. If you're interested in giving that implementation a try, I'd love a pull request. I'd also be happy to help guide you through it, if you have questions, but as someone who has never used Pyramid, I'd really appreciate your help.

Thanks -Wes

tsemerad commented 10 years ago

Thanks for the reply. I would love to try implementing it but I cannot say when I would have the time to do so. I am very new to Pyramid so I am not familiar with many of its components (such as Beaker), but I would love to learn. I'll let you know if I get the free time to try it out.