Skip to content

Commit

Permalink
Merge pull request #15 from winebarrel/chore/add_comment
Browse files Browse the repository at this point in the history
chore: Comment on interrupt handling
  • Loading branch information
winebarrel authored Nov 11, 2023
2 parents 6c3bbda + 967318a commit f01d18f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions task.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (task *Task) Run() (*Report, error) {
case <-ctx.Done():
// nothing to do
case <-sigint:
// Stop query on interrupt
cancel()
eg.Wait() //nolint:errcheck
os.Exit(130)
Expand Down

0 comments on commit f01d18f

Please sign in to comment.