SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Close scheduler on module exit

Open coolreader18 opened this issue 9 months ago • 0 comments

Description of Changes

Fixes #2474. Turns out we weren't ever calling Module::close(), and thus were never calling Scheduler::close(). I'm still not able to actually repro the issue but if anything is the cause, this would be it. I also made it so exit().await won't return until the scheduler is fully closed, so that we won't run into race conditions.

Expected complexity level and risk

1

Testing

  • [ ] If anyone able to repro the issue would be willing to test (or tell me how to repro) that would be super helpful

coolreader18 avatar Mar 17 '25 19:03 coolreader18