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

celery integration #201

Closed
rishkarajgi opened this issue Feb 13, 2020 · 2 comments
Closed

celery integration #201

rishkarajgi opened this issue Feb 13, 2020 · 2 comments

Comments

@rishkarajgi
Copy link

How to integrate celery into this app?

@abhisuri97
Copy link
Contributor

Hi there,
Sorry for getting to this so very late.

So right now, we use an already baked in version of a redis task queue manager as implemented in flask_rq. You can find its instantiation here:

from flask_rq import RQ

Essentially, the queue is only really used in a couple of places. One is in admin/views and the other is in accounts/views. Both times it is just used for emailing. So if you want to use celery instead, just go ahead and rip out any reference to flask_rq in those files and replace it with your own celery integration.

The main calls to replace in the application are get_queue() calls. Does that help?

@abhisuri97
Copy link
Contributor

Closing. Feel free to reopen if you have any other issues!

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