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

Calling postgres from celery #71

Open
bazylhorsey opened this issue May 9, 2023 · 1 comment
Open

Calling postgres from celery #71

bazylhorsey opened this issue May 9, 2023 · 1 comment

Comments

@bazylhorsey
Copy link
Contributor

Right now we can use syncify with the CRUD functions inside celery, but aysncpg is still in charge of the session. This seems suboptimal but switching into psychopg seems like a lot of duplicated work? Is using asyncpg fine for this use-case?

@jonra1993
Copy link
Owner

jonra1993 commented May 13, 2023

Hello @bazylhorsey thanks for your questions I also agree such operation is not the best for now and the cause is celery-sqlalchemy-scheduler which is online has sync support and it uses an old sqlalchemy implementation. I was thinking that in the future it could be a good idea to improve the implementation so it can support async. For now, using async is the best because the lib requires it.

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