Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

METS Server: try to remove UDS socket at sys.exit #1177

Merged
merged 1 commit into from Jan 30, 2024

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
17 checks passed
@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.

None yet

2 participants