session icon indicating copy to clipboard operation
session copied to clipboard

Async save to datastore incorrect

Open tobytraylor opened this issue 9 years ago • 1 comments

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.

tobytraylor avatar Oct 08 '16 05:10 tobytraylor

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).

icza avatar Oct 10 '16 09:10 icza