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

Async save to datastore incorrect #3

Open
tobytraylor opened this issue Oct 8, 2016 · 1 comment
Open

Async save to datastore incorrect #3

tobytraylor opened this issue Oct 8, 2016 · 1 comment

Comments

@tobytraylor
Copy link

Go app engine doesn't allow datastore interactions after the ctx is cleared which is tied to the request lifecycle. Though it's possible the datastore interactions could occur before the context expires it's not possible to guarantee it. If you want for it to work you'll have to do something like go delay but that requires the library consumer to make some configuration changes.

@icza
Copy link
Owner

icza commented Oct 10, 2016

Thanks for reporting this.

As a "temporary" fix, I changed the default operation to save sessions in the Datastore synchronously (before returning from the request).

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

No branches or pull requests

2 participants