opdev / opcap

Apache License 2.0
3 stars 15 forks source link

Add support for canceling work upon Ctrl-C #261

Closed bcrochet closed 2 years ago

bcrochet commented 2 years ago

Description of PR

The main() func now looks for interrupt signals, and will propagate the cancel signal down through the context.

It sets up the capability to run cleanup for audits that have been run.

Signed-off-by: Brad P. Crochet brad@redhat.com

Refers #226

Changes (required)

Checklist (required)

exe-prow-github-app[bot] commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: skattoju, yashoza19

Associated issue: #101

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

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/opdev/opcap/blob/main/OWNERS)~~ [yashoza19] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
acmenezes commented 2 years ago

/lgtm