Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask Demo/Example #38

Open
3goats opened this issue Mar 5, 2014 · 6 comments
Open

Flask Demo/Example #38

3goats opened this issue Mar 5, 2014 · 6 comments

Comments

@3goats
Copy link

3goats commented Mar 5, 2014

Hi,

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

Carl

@winhamwr
Copy link
Contributor

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

@3goats
Copy link
Author

3goats 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.

@winhamwr
Copy link
Contributor

winhamwr commented Mar 5, 2014

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

@3goats
Copy link
Author

3goats 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!

@winhamwr
Copy link
Contributor

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?

@3goats
Copy link
Author

3goats 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants