Runner needs to send :cancel_gracefully runner feature
Problem
During the review of !140522 (merged) Auyfan suggested that we should only expose the new canceling functionality for supported runners. If we had ommited this, jobs would have transitioned to canceling
briefly before being marked canceled
even for runners that don't support running after_script
during canceling
.
As a result, we put the support for transitioning to canceling behind a runtime runner feature check for the cancel_gracefully
feature. To roll-out the support for running after script during the canceling phase we will need to have the runner send over that it supports the feature.
Proposal
Ensure that versions of the runner that support after_script are sending over that the runner supports the cancel_gracefully
feature. See the rails check: https://gitlab.com/gitlab-org/gitlab/-/blob/3d88e491ec0819488bb6ffa636bbf2a5bb2f9e66/app/models/ci/build_metadata.rb#L71
cc. @ajwalker