Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

fix(cancel): remove SIGTERM in favor of executor.DestroyBuild #129

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

meinenec
Copy link
Contributor

Fixes go-vela/community#201

Sending a SIGTERM to cancel the executor actually terminates the entire worker. In the future Go may support separate PIDs per thread golang/go#19326

@meinenec meinenec requested a review from a team as a code owner February 10, 2021 17:51
@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #129 (14439d6) into master (7735f13) will increase coverage by 0.30%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
+ Coverage   75.31%   75.61%   +0.30%     
==========================================
  Files          29       29              
  Lines        1503     1497       -6     
==========================================
  Hits         1132     1132              
+ Misses        290      284       -6     
  Partials       81       81              
Impacted Files Coverage Δ
executor/linux/api.go 10.34% <0.00%> (+0.34%) ⬆️
executor/local/api.go 10.34% <0.00%> (+0.34%) ⬆️

Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@meinenec meinenec merged commit 32cbe2c into master Feb 10, 2021
@meinenec meinenec deleted the fix_cancel_executors branch February 10, 2021 19:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build cancelation cancels all builds on worker with multiple executors
4 participants