Skip to content

Add a quality check to ensure signal.signal is only used in one place #111

Description

@rafidka

Overview

The Python's method signal.signal can only be used to assign one signal handler, and if you call it again, it will remove the previous handler. Considering our reliance on this method in the subprocess module to handle SIGTERMs and gracefully shutdown processes, we need to make sure it is not accidentally called somewhere else, as that will break our logic.

Acceptance Criteria

  • Implement a quality check like the one for pip that scans our code and ensure the signal.signal method is only called in one place in the subprocess module.

Additional Info

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions