Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kba
Copy link
Member

@kba kba commented Jan 26, 2024

Basically, just add atexit(self.shutdown), so the socket file is removed when the process exits. This should cover most of the things that can go wrong, except kill -9/C-\ which cannot be caught.

@kba kba requested a review from MehmedGIT January 26, 2024 16:22
Copy link
Contributor

@MehmedGIT MehmedGIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR still does not resolve the issue. Nevertheless, it is a good addition.

After the Processing Server docker container is stopped and removed, the UDS socket stays where it was volume mapped on the host machine. The leftovers (if any) shall be also cleaned in the Makefile for consistency.

@kba
Copy link
Member Author

kba commented Jan 30, 2024

The leftovers (if any) shall be also cleaned in the Makefile for consistency.

Can you prepare a separate PR for that? Or write how to determine the right path and I'll implement it.

@MehmedGIT
Copy link
Contributor

I already took care of that in #1164 with the last commit :)

@kba kba merged commit 03353af into master Jan 30, 2024
@kba kba deleted the mets-server-socket-cleanup branch January 30, 2024 16:47
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.

3 participants