Effect CommunityEC
Effect Community3y ago
46 replies
Arne

Graceful Shutdown of Express Server and Database

Thanks for the beautiful example of Express integration in the documentation https://www.effect.website/docs/express I am wondering how to do graceful shutdown of the server on process.on('SIGTERM', shutdownServerAndDatabase)? It does not seem that the Effect.acquireRelease is triggered on 'SIGTEM', 'SIGINT', 'SIGUSER2', ... etc. Is there a way to find all fibers and interrupt them?
A fully-fledged functional effect system for TypeScript with a rich standard library
Express Integration – Effect
Was this page helpful?