[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance(operate): check in loop more responsive to termination signal #596

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

ecrupper
Copy link
Contributor

If the worker has no build running, terminating the worker should be far more responsive than letting the check in interval expire. This change introduces a 5 second ticker that checks if the context is done or if the interval has been reached for check in.

@ecrupper ecrupper requested a review from a team as a code owner September 18, 2024 16:06
Copy link
codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 57.46%. Comparing base (1b7be1a) to head (c10bcd0).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/vela-worker/operate.go 0.00% 6 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #596      +/-   ##
==========================================
- Coverage   57.50%   57.46%   -0.05%     
==========================================
  Files         121      121              
  Lines        5201     5205       +4     
==========================================
  Hits         2991     2991              
- Misses       1984     1988       +4     
  Partials      226      226              
Files with missing lines Coverage Δ
cmd/vela-worker/operate.go 0.00% <0.00%> (ø)

Copy link
Member
@wass3rw3rk wass3rw3rk left a comment

Choose a reason for hiding this comment

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

lgtm - ty

@ecrupper ecrupper merged commit db0fc08 into main Sep 20, 2024
11 of 13 checks passed
@ecrupper ecrupper deleted the enhance/signal-handling-checkin branch September 20, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants