krkn-chaos / cerberus

Guardian of Kubernetes clusters. Tool to monitor clusters health and signal/alert on failures.
Apache License 2.0
92 stars 42 forks source link

Kill process default usage #204

Closed paigerube14 closed 1 year ago

paigerube14 commented 1 year ago

Current signal ignores any signals being sent to start_cerberus and doesnt properly end the run


If you want to ignore the signal specified by the first argument (i.e., pretending that the signal never happens), use SIG_IGN for the second argument.

    signal(SIGINT, SIG_IGN)

    signal(SIGALRM, SIG_IGN)

In the above two lines, SIGINT and SIGALRM are ignored.

switching to using: https://python.readthedocs.io/en/latest/library/signal.html#signal.SIG_DFL

paigerube14 commented 1 year ago
^CProcess ForkPoolWorker-2:
Process ForkPoolWorker-3:
Process ForkPoolWorker-4:
Process ForkPoolWorker-1:
2023-07-14 16:01:24,799 [INFO] Terminating cerberus monitoring
2023-07-14 16:01:24,801 [INFO] Final status information written to final_cerberus_info.json
openshift-ci[bot] commented 1 year ago

@paigerube14: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images d659d378d9a8a8a1f60af0a080a7f49d95f9dafb link true /test images

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
openshift-ci[bot] commented 1 year ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: chaitanyaenr, paigerube14

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/redhat-chaos/cerberus/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment