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

Open
karajrish opened this issue Feb 13, 2020 · 1 comment
Open

celery integration #201

karajrish opened this issue Feb 13, 2020 · 1 comment

Comments

@karajrish
Copy link

@karajrish karajrish commented Feb 13, 2020

How to integrate celery into this app?

@abhisuri97
Copy link
Contributor

@abhisuri97 abhisuri97 commented Jun 21, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.