Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Flask Demo/Example #38

Open
carlskii opened this Issue Mar 5, 2014 · 6 comments

Comments

Projects
None yet
2 participants

carlskii commented Mar 5, 2014

Hi,

Is there a working Flask/Celery 3.1 demo for jobtastic?

Carl

Member

winhamwr commented Mar 5, 2014

Hi Carl,

I don't know of a demo/example, but I'd sure love to see one. Did you run in to some trouble trying to use Jobtastic with Flask and Celery 3.1?

Thanks
-Wes

carlskii commented Mar 5, 2014

Yeah a bit a spent about 30 mins trying to get a basic app running but gave up. Thats why i was hoping for a basic simple demo.

Member

winhamwr commented Mar 5, 2014

Do you have it working without Jobtastic? What happens when you add Jobtastic? Traceback?

carlskii commented Mar 5, 2014

Yes I have a basic Flask/Celery app running and I can submit tasks to Celery, then get the result back. Not sure how to add Jobtastic to it though!

Member

winhamwr commented Mar 5, 2014

Whichever task that you'd like to be a Jobtastic task will need to extend from JobtasticTask and implement the calculate_result method, like in the [creating your first task](not looking for extra workhttps://github.com/PolicyStat/jobtastic#creating-your-first-task) example. That part shouldn't change because you're using Flask or Celery 3.1

Does that make sense?

carlskii commented Mar 5, 2014

OK - Ill give that a try tomorrow !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment