clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.12k stars 100 forks source link

Add request context to datastore traits #1144

Open joshua-spacetime opened 3 weeks ago

joshua-spacetime commented 3 weeks ago

Currently, once a transaction has started, it will run till completion. There is no way to stop its execution. The datastore traits need some sort of request context that can be polled periodically such that a transaction can be stopped prematurely in the case that the originating connection is closed, the originating request times out, etc.

cloutiertyler commented 2 weeks ago

I propose that we close this one given that we've closed the query timeout one in favor of the energy estimation approach