Skip to content

Conversation

RunDevelopment
Copy link
Member

Just for fun, I asked chatGPT about our problem with the worker process being orphaned when the host process was killed. It suggested using atexit, which I thought was a good idea. We already solved the problem using the /shutdown endpoint, but I think it's good to use atexit as a backup.

I also think that we should keep /shutdown. It's useful to have because it allows the server to refuse to be shutdown, in case we need this ability in the future.

@joeyballentine joeyballentine merged commit e0a5fb3 into chaiNNer-org:main Apr 27, 2024
@RunDevelopment RunDevelopment deleted the atexit branch April 27, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants