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

Suport for Async connections #31

Closed
ssjunior opened this issue Apr 16, 2015 · 3 comments
Closed

Suport for Async connections #31

ssjunior opened this issue Apr 16, 2015 · 3 comments

Comments

@ssjunior
Copy link

Hi Rafał,

When using celery to process tasks, it is not possible to connect to Cassandra due to timeout.

Maybe this is related to this observation: Just be sure to never share any Cluster, Session, or ResponseFuture objects across multiple processes. These objects should all be created after forking the process, not before.

This issue is described at:

http://stackoverflow.com/questions/24785299/python-cassandra-driver-operationtimeout-on-every-query-in-celery-task

but is most related to the Datastax driver.

Is there a way to create a new session inside every task worker?

Kind regards

ssjunior

@r4fek
Copy link
Owner

r4fek commented Apr 16, 2015

Hi @ssjunior,

It is well described in documentation, so please read it and you should be OK.

@r4fek r4fek closed this as completed Apr 16, 2015
@ssjunior
Copy link
Author

@r4fek I read the documentation and missed the FAQ. Sorry for bothering. Thank you!

@r4fek
Copy link
Owner

r4fek commented Apr 16, 2015

No problem. Perhaps I should move it to more visible place than FAQ :)

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