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

Remove unneeded interchange SIGTERM handler #3635

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

benclifford
Copy link
Collaborator

This was introduced in PR #2629 to guard against the submit process installing a SIGTERM handler and then that handler being unexpectedly inherited by the interchange via multiprocesssing fork

PR #3463 changed the interchange to run as a fresh Python process, which will not inherit SIGTERM handlers, so since then this line has been vestigial.

Fixes issue #3588

Changed Behaviour

none - the interchange should already be starting with the default signal handler for SIGTERM

Type of change

  • Code maintenance/cleanup

This was introduced in PR #2629 to guard against the submit process
installing a SIGTERM handler and then that handler being unexpectedly
inherited by the interchange via multiprocesssing fork

PR #3463 changed the interchange to run as a fresh Python
process, which will not inherit SIGTERM handlers, so since
then this line has been vestigial.

Fixes issue #3588
@benclifford benclifford requested a review from rjmello October 14, 2024 10:27
@benclifford benclifford merged commit ae5e5f4 into master Oct 14, 2024
7 checks passed
@benclifford benclifford deleted the benc-interchange-sigterm branch October 14, 2024 15:20
benclifford added a commit that referenced this pull request Oct 22, 2024
Prioer to PR #3463, the interchange process was launched
with multiprocessing fork and inherited the log configuration
of the parent process.


To give the interchange its own log file, a specific logger,
called "interchange" was used. In PR #2307, this logger was
configured to not propagate entries upwards, so that user
defined root handlers in the parent process do not see
interchange logs.

Since #3463 this special configuration has no longer been
necessary. See #3635 for a related change to signal handlers.
benclifford added a commit that referenced this pull request Oct 24, 2024
Prior to PR #3463, the interchange process was launched
with multiprocessing fork and inherited the log configuration
of the parent process.


To give the interchange its own log file, a specific logger,
called "interchange" was used. In PR #2307, this logger was
configured to not propagate entries upwards, so that user
defined root handlers in the parent process do not see
interchange logs.

Since #3463 this special configuration has no longer been
necessary. See #3635 for a related change to signal handlers.

Co-authored-by: Kevin Hunter Kesling <[email protected]>
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